Helm values files or Kustomize overlays for per-environment config?
BeginnerScenarioMulti-env and multi-account
Answer
Situation read → Both handle environment differences. Helm templates and packages; Kustomize patches plain YAML. Pick based on who owns the manifests.
What I'd do →
- Helm when you ship a reusable chart (platform-provided app chart, third-party software) and environments differ by values.
helm upgrade --install api ./chart -f values.yaml -f values-prod.yaml -n prod
- Kustomize when each team owns plain YAML and environments differ by small patches (replicas, image, resources).
# overlays/prod/kustomization.yaml
resources: ["../../base"]
images:
- name: api
newTag: "1.8.0"
patches:
- path: replicas.yaml
- Combining them is common too: Kustomize can render a Helm chart and patch the output, and Argo CD supports both.
- Keep environment differences small and visible; if prod values files are 400 lines different from dev, that's a parity problem.
Why → Both work with GitOps; consistency across the organisation matters more than the tool.
Interview tip → Say you'd standardise on one per org; mixed approaches slow everyone down.
More on Multi-env and multi-account
Design the AWS account structure for a 50-engineer startup that's growing fast.IntermediateHow do you promote the same build from dev to staging to prod?BeginnerBugs keep passing staging and appearing in production. How do you make staging closer to prod?IntermediateHow do you structure Terraform for dev, staging and prod? Workspaces, directories or Terragrunt?IntermediateDevelopers want a preview environment for every pull request. How would you build it?AdvancedCI runs in a shared tools account and must deploy to dev, staging and prod accounts. How do you set up access?Intermediate