How does Argo CD connect to the cluster it is installed in, and to remote clusters?
BeginnerConceptArgo CD Architecture & Internals
Answer
The local cluster is https://kubernetes.default.svc (named in-cluster), reached with the controller's own ServiceAccount. Remote clusters are registered as Secrets labelled argocd.argoproj.io/secret-type: cluster containing the API server URL and credentials (bearer token, client certs, or exec/IAM auth such as awsAuthConfig). argocd cluster add <context> creates an argocd-manager ServiceAccount with a ClusterRole in the target cluster and stores its token in that Secret.
More on Argo CD Architecture & Internals
What are the main components of Argo CD?BeginnerWhat does the argocd-repo-server do, and what does it not do?BeginnerWhat does the application controller do on each reconcile?IntermediateWhat is stored in Redis, and what happens if Redis is lost?IntermediateWhy is the application controller a StatefulSet rather than a Deployment?AdvancedWhere does Argo CD keep its configuration?Beginner