Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
Install Argo CD
Apply the official manifests (or the Helm chart) into the argocd namespace.
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get pods -n argocd
helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd argo/argo-cd -n argocd --create-namespace| Component | Job |
|---|---|
| argocd-server | API and web UI |
| argocd-repo-server | Clones Git and renders manifests (Helm, Kustomize) |
| argocd-application-controller | Compares and syncs applications |
| argocd-dex-server | SSO (optional) |
| redis | Cache |
Log in
The first admin password is in a secret. Change it, then prefer SSO.
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d; echo
kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd login localhost:8080 --username admin --insecure
argocd account update-password
kubectl -n argocd delete secret argocd-initial-admin-secretLet op
Do not expose the Argo CD UI to the internet without SSO and TLS — it can change every application in the cluster.
Connect a repository
Public repositories work at once. Private ones need a deploy key or a token — read-only.
ssh-keygen -t ed25519 -f argocd-deploy -N ''
argocd repo add git@github.com:s0sta/shop-deploy.git --ssh-private-key-path argocd-deploy
argocd repo listAdd argocd-deploy.pub in GitHub → repository → Settings → Deploy keys (read-only).
Use the CLI
Everything in the UI can be done with argocd.