Argo CD 3 cheatsheet
Argo CD 3: Repositories and clusters
6 common Argo CD 3 tasks.
Add a private repository
Register credentials for a private Git repository. Use a token, not your password.
argocd repo add https://github.com/example/private-repo.git --username git --password $GIT_TOKEN
Register another cluster
Add a cluster from your kubeconfig context so Argo CD can deploy to it.
argocd cluster add my-prod-context
Refresh from Git
Make Argo CD re-read the repository without waiting for the polling interval.
argocd app get guestbook --refresh
Useful sync options
Create the namespace, replace resources that can't be patched, or sync in a prune-last order.
argocd app sync guestbook --prune --force