Interview Prep/GitOps & Argo CD/ApplicationSets, App-of-Apps & Multi-Cluster

How do you register an EKS cluster without static tokens?

AdvancedConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer

Use IAM-based auth in the cluster Secret:

{
  "awsAuthConfig": {
    "clusterName": "prod-eu",
    "roleARN": "arn:aws:iam::111122223333:role/argocd-deployer"
  },
  "tlsClientConfig": { "caData": "<base64 CA>" }
}

Argo CD's controller and server run with IRSA or EKS Pod Identity, assume the role, and get short-lived tokens. On the target cluster, map that role to a Kubernetes group with an EKS access entry (or aws-auth), bound to the RBAC Argo CD needs. No long-lived bearer token is stored.

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

More on ApplicationSets, App-of-Apps & Multi-Cluster