add argocd self-managed Application (sync-wave -1)
This commit is contained in:
17
README.md
17
README.md
@@ -105,6 +105,23 @@ kubectl port-forward svc/argocd-server -n argocd 8080:443
|
|||||||
|
|
||||||
Open `https://localhost:8080` — login with `admin` and the password you chose.
|
Open `https://localhost:8080` — login with `admin` and the password you chose.
|
||||||
|
|
||||||
|
### 3.1 Bake the hash into values.yaml for self-management
|
||||||
|
|
||||||
|
ArgoCD won't run `envsubst` when it self-manages — replace the placeholder with the real hash so future syncs work:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
source .env
|
||||||
|
sed -i "s|\$ARGOCD_ADMIN_PASSWORD_HASH|$ARGOCD_ADMIN_PASSWORD_HASH|" manifests/argocd/values.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git add manifests/argocd/values.yaml && git commit -m "set argocd admin password hash"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git push origin main
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Phase 4 — Create bootstrap app in ArgoCD UI
|
## Phase 4 — Create bootstrap app in ArgoCD UI
|
||||||
|
|||||||
26
bootstrap/apps/argocd.yaml
Normal file
26
bootstrap/apps/argocd.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: https://argoproj.github.io/argo-helm
|
||||||
|
chart: argo-cd
|
||||||
|
targetRevision: "7.8.26"
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/manifests/argocd/values.yaml
|
||||||
|
- repoURL: https://gitea.fireflylab.cc/duynguyen/cluster-bootstrap.git
|
||||||
|
targetRevision: main
|
||||||
|
ref: values
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
Reference in New Issue
Block a user