Interview Prep/GitOps & Argo CD/Environments, ApplicationSets & Multi-Cluster

You must deploy the same Helm chart to 30 clusters but only staging should track the latest chart version. How?

IntermediateScenarioEnvironments, ApplicationSets & Multi-Cluster
Answer

Situation read → Different revision policy per environment.

What I'd do →

  1. Cluster Secret labels define chart-version per cluster or environment.
  2. ApplicationSet template sets targetRevision: "{{ index .metadata.labels \"chart-version\" }}".
  3. Staging clusters use a range (4.*), prod clusters an exact version updated by PR.

Why → Staging catches chart regressions early while prod upgrades deliberately.

Interview tip → Note that labels have value constraints (63 chars, limited characters); annotations are an alternative for longer values.

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

More on Environments, ApplicationSets & Multi-Cluster