How would you register 50 EKS clusters with Argo CD securely, without long-lived tokens?
AdvancedScenarioEnvironments, ApplicationSets & Multi-Cluster
Answer
Situation read → Credential sprawl and rotation risk.
What I'd do →
- Give the Argo CD controller and server an IAM role through IRSA or EKS Pod Identity.
- In each target account, create a deployer role trusted by that role, and map it with an EKS access entry to a Kubernetes group with the needed RBAC.
- Create cluster Secrets with
awsAuthConfig(clusterName,roleARN) and the cluster CA, generated by Terraform or Crossplane and committed (no secret material inside). - Label the Secrets for ApplicationSets.
Why → Short-lived STS credentials, nothing to rotate, and access is revocable in IAM.
Interview tip → Mention that the cluster Secret then contains no credentials, only identifiers.
More on Environments, ApplicationSets & Multi-Cluster
You need to deploy the same app to dev, staging and prod namespaces with different values. Design it with an ApplicationSet.IntermediateA new prod cluster comes online every month. How do you make sure it gets all standard add-ons automatically?IntermediateA matrix ApplicationSet (clusters times apps) generated 300 Applications, but a bad commit to one app's chart broke all prod clusters at once. How do you redesign for safer rollouts?AdvancedYou want preview environments for every pull request on the app repo. How do you do it with Argo CD?IntermediateSome clusters need a different version of an add-on than the rest. How do you handle exceptions without duplicating ApplicationSets?AdvancedA product team wants their own namespace in every cluster with the same RBAC and quotas. How do you automate it?Intermediate