Interview Prep/Helm/Chart Design & Authoring

Your app needs a different config file per environment, with values injected. How do you package it?

IntermediateScenarioChart Design & Authoring
Answer

Situation read → Config files are long; embedding them as YAML strings in values is unreadable.

What I'd do →

  1. Keep the template config in files/app.conf.tpl inside the chart with placeholders like {{ .Values.app.logLevel }}.
  2. Render it into a ConfigMap with tpl:
data:
  app.conf: |-
{{ tpl (.Files.Get "files/app.conf.tpl") . | indent 4 }}
  1. Expose only the variable parts as values per environment.
  2. Add a checksum annotation so changes roll the pods.

Why → The file stays readable and diffable; environments differ only in values.

Interview tip → Mention .helmignore and that .Files cannot read files under templates/.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring