Interview Prep/Kubernetes/Helm, operators and GitOps

How would you design a GitOps repo layout and promotion flow for dev, staging and prod?

AdvancedScenarioHelm, operators and GitOps
Answer

Situation read → Several teams deploy to three environments through Argo CD.

What I'd do →

  1. Separate app source repos from a config repo
  2. Use Kustomize bases with env overlays, or ApplicationSets with a cluster generator
  3. Promote by pull request changing the image tag in the next environment
  4. Automate dev, require approval for prod
  5. Protect branches and use CODEOWNERS

Why → Git history becomes the audit trail for every change.

Interview tip → Say promotion is a PR, not a pipeline push.

All Kubernetes questions Roadmap: Platform engineering

More on Helm, operators and GitOps