Interview Prep/Real-World Interview/Multi-env and multi-account

You run 30 Kubernetes clusters. How do you keep add-ons and apps consistent across them?

AdvancedScenarioMulti-env and multi-account
Answer

Situation read → Hand-applying anything to 30 clusters guarantees drift. You need one declaration that fans out by cluster attributes.

What I'd do →

  1. Register every cluster in Argo CD with labels like env, region, tier.
  2. Use ApplicationSets with the cluster generator to install add-ons everywhere, with values chosen by label:
generators:
  - clusters:
      selector:
        matchLabels:
          env: prod
template:
  metadata:
    name: 'cert-manager-{{name}}'
  spec:
    source:
      repoURL: https://charts.jetstack.io
      chart: cert-manager
      targetRevision: v1.16.2
      helm:
        valueFiles: ['values-{{metadata.labels.region}}.yaml']
    destination:
      server: '{{server}}'
      namespace: cert-manager
  1. Roll out upgrades in waves: dev clusters, then one prod cluster, then the rest (progressive sync or separate ApplicationSets per wave).
  2. Detect drift: Argo CD sync status across all clusters on one dashboard, with alerts on OutOfSync.
  3. Clusters themselves come from one Terraform module, so they start identical.

Why → One declaration, many targets, and waves give consistency without big-bang risk.

Interview tip → Mention rolling out add-on upgrades in waves; pushing to all 30 at once is how one bad chart becomes 30 outages.

All Real-World Interview questions Roadmap: Interview readiness

More on Multi-env and multi-account