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 →
- Separate app source repos from a config repo
- Use Kustomize bases with env overlays, or ApplicationSets with a cluster generator
- Promote by pull request changing the image tag in the next environment
- Automate dev, require approval for prod
- 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.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced