Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

A cluster shows `ConnectionStatus: Failed` with `the server has asked for the client to provide credentials`.

IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → The bearer token in the cluster secret expired or the ServiceAccount token secret was deleted; on EKS, the IAM role used by Argo CD lost its access entry or aws-auth mapping.

Diagnose →

argocd cluster get https://<api-endpoint>
kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=cluster

For EKS: aws eks list-access-entries --cluster-name prod.

Fix → Re-run argocd cluster add <context> --upsert to mint a new token, or restore the EKS access entry for the Argo CD role (IRSA/Pod Identity with awsAuthConfig in the cluster secret).

Prevent → Use IAM-based auth (execProviderConfig or awsAuthConfig) instead of long-lived tokens; alert on argocd_cluster_connection_status.

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

More on Repos, Clusters, Projects & Permissions