Interview Prep/Helm/Chart Design & Authoring

Changing a ConfigMap value in the chart does not restart the pods, so the app keeps old config. What do you change?

IntermediateScenarioChart Design & Authoring
Answer

Situation read → Pods read config at startup (env vars or a file loaded once). A ConfigMap update does not change the pod template, so no rollout happens.

What I'd do →

  1. Add a checksum annotation to the pod template:
annotations:
  checksum/config: {{ include (print $.Template.BasePath "/api-configmap.yaml") . | sha256sum }}
  1. Do the same for Secrets the chart renders.
  2. For externally managed config, use a tool like Stakater Reloader, or include a version value in the name of the ConfigMap.

Why → Any config change now alters the pod template hash and triggers a normal rolling update.

Interview tip → Avoid .Release.Revision annotations; they restart pods on every deploy even when nothing changed.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring