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 →
- Cluster Secret labels define
chart-versionper cluster or environment. - ApplicationSet template sets
targetRevision: "{{ index .metadata.labels \"chart-version\" }}". - 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.
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?AdvancedHow would you register 50 EKS clusters with Argo CD securely, without long-lived tokens?Advanced