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.
More on ApplicationSets, App-of-Apps & Multi-Cluster
What problem does an ApplicationSet solve?BeginnerList the ApplicationSet generators.BeginnerShow a list generator example.BeginnerHow does the cluster generator work?IntermediateCompare the git directory and git files generators.IntermediateWhat is a matrix generator and what are its limits?Intermediate