Interview Prep/Helm/Values & Environments

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 →

  1. Move them into a values file committed next to the deploy definition.
  2. Keep --set-string only for truly dynamic values (image tag, build number).
  3. Use --set-file for file content and secrets via secrets:// files.

Why → Values files are diffable and reviewable; flags are not.

Interview tip → Reproducibility from Git is the argument that wins.

All Helm questions Roadmap: Helm

More on Values & Environments