A developer passes 20 `--set` flags in a shell script. What would you change?
BeginnerScenarioValues & Environments
Answer
Situation read → Long --set chains are unreadable, hard to review, error prone with commas and dots, and invisible in Git history.
What I'd do →
- Move them into a values file committed next to the deploy definition.
- Keep
--set-stringonly for truly dynamic values (image tag, build number). - Use
--set-filefor file content and secrets viasecrets://files.
Why → Values files are diffable and reviewable; flags are not.
Interview tip → Reproducibility from Git is the argument that wins.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerA value that should be `false` in prod keeps rendering as enabled. Where do you look?IntermediateDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateYou must deploy to a region with an air-gapped cluster. How do you handle values and images?Advanced