Interview Prep/GitOps & Argo CD/ApplicationSets, Rollouts & Image Updater

A newly registered cluster gets no Applications from a cluster-generator ApplicationSet.

IntermediateTroubleshootingApplicationSets, Rollouts & Image Updater
Answer

Likely causes → The generator's selector.matchLabels requires labels the cluster secret does not have. The local in-cluster has no secret, so label selectors never match it unless you create one.

Diagnose →

kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=cluster --show-labels

Fix → Label the cluster secret (kubectl label secret <cluster-secret> env=prod -n argocd) or set labels at registration with argocd cluster add ctx --label env=prod.

Prevent → Make labels part of the cluster registration code (Terraform), not a manual step.

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

More on ApplicationSets, Rollouts & Image Updater