Interview Prep/Helm/Values & Environments

You need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?

BeginnerScenarioValues & Environments
Answer

Situation read → The tag changes on every build; the rest is reviewed config.

What I'd do →

  1. Imperative CI: helm upgrade --install shop ./shop -f values-prod.yaml --set-string api.image.tag=$GIT_SHA.
  2. GitOps: CI opens a PR or commits api.image.tag: <sha> to envs/prod/values.yaml; Argo CD syncs.
  3. Use --set-string so tags like 1.10 or 0123abc keep their exact text.
  4. Record the SHA in --description for traceability.

Why → Either way the deployed tag is traceable; GitOps also makes rollback a revert.

Interview tip → Mention --set-string and why.

All Helm questions Roadmap: Helm

More on Values & Environments