Interview Prep/GitOps & Argo CD/Argo CD Architecture & Internals

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Argo CD Architecture & Internals