Fixing ArgoCD by moving to right repository

Co-authored-by: Marcel Straub <m@straubs.eu>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-09-07 11:32:40 +02:00
parent 04cede6f11
commit 1c2ed174cf
5 changed files with 30 additions and 6 deletions

View File

@@ -8,6 +8,30 @@ Follow documentation at [Deploy Kubernetes Cluster](../00-infrastructure/01-tofu
### 2. Deploy Argo CD
Deployment of ArgoCD itself:
```shell
kustomize build --enable-helm infra/controllers/argocd | kubectl apply -f -
```
Configure ArgoCD to pull our setup from this repo:
```shell
kubectl apply -k infra
```
#### Temporary legacy admin user
Configure Admin users:
1. Get random password:
```shell
argocd admin initial-password -n argocd
```
1. Establish UI forward:
```shell
kubectl port-forward svc/argocd-server -n argocd 8080:443
```
1. CLI Login with previously retrieved password and username ``admin``:
```shell
argocd login localhost:8080 --insecure
```

View File

@@ -8,7 +8,7 @@ metadata:
spec:
generators:
- git:
repoURL: https://git.straubintra.net/s5b-private/k8s/
repoURL: https://git.straubintra.net/s5b-public/k8s.git
revision: HEAD
directories:
- path: 02-k8s/infra/*
@@ -20,7 +20,7 @@ spec:
spec:
project: infrastructure
source:
repoURL: https://git.straubintra.net/s5b-private/k8s/
repoURL: https://git.straubintra.net/s5b-public/k8s.git
targetRevision: HEAD
path: '{{ path }}'
destination:

View File

@@ -8,7 +8,7 @@ metadata:
spec:
generators:
- git:
repoURL: https://git.straubintra.net/s5b-private/k8s/
repoURL: https://git.straubintra.net/s5b-public/k8s.git
revision: HEAD
directories:
- path: 02-k8s/infra/controllers/*
@@ -20,7 +20,7 @@ spec:
spec:
project: controllers
source:
repoURL: https://git.straubintra.net/s5b-private/k8s/
repoURL: https://git.straubintra.net/s5b-public/k8s.git
targetRevision: HEAD
path: '{{ path }}'
destination:

View File

@@ -5,7 +5,7 @@ metadata:
namespace: argocd
spec:
sourceRepos:
- 'https://git.straubintra.net/s5b-private/k8s/'
- 'https://git.straubintra.net/s5b-public/k8s.git'
destinations:
- namespace: 'argocd'
server: '*'

View File

@@ -5,7 +5,7 @@ metadata:
namespace: argocd
spec:
sourceRepos:
- 'https://git.straubintra.net/s5b-private/k8s/'
- 'https://git.straubintra.net/s5b-public/k8s.git'
destinations:
- namespace: 'kube-system'
server: '*'