How do you register a new cluster and list clusters?
BeginnerConceptRapid-Fire Commands
Answer
kubectl config get-contexts
argocd cluster add prod-eu-context --name prod-eu --label env=prod
argocd cluster list
argocd cluster get prod-eu
cluster add uses your current kubeconfig credentials once to create the argocd-manager ServiceAccount, then Argo CD uses that account's token.
More on Rapid-Fire Commands
How do you get the initial admin password and log in from the CLI?BeginnerHow do you create an Application from the CLI with auto-sync?BeginnerHow do you see exactly what would change before syncing?BeginnerHow do you force Argo CD to re-render manifests ignoring its cache?BeginnerHow do you wait in a pipeline until an app is synced and healthy?IntermediateHow do you stop a stuck sync operation?Intermediate