Interview Prep/Helm/Chart Design & Authoring

Product wants a "maintenance mode" toggle that swaps the frontend for a static page. How would you implement it in the chart?

IntermediateScenarioChart Design & Authoring
Answer

Situation read → It must be fast to toggle and reversible.

What I'd do →

  1. Add maintenance.enabled and render a small nginx Deployment with a ConfigMap page when true.
  2. Switch the Service selector or Ingress backend to the maintenance component in the same render.
  3. Toggle through the normal pipeline: the full values files plus --set maintenance.enabled=true (not --reuse-values), or a one-line commit in GitOps.
  4. Keep the main Deployment running, so switching back is instant.

Why → Selector switch is atomic at the Service level; no pods need to restart.

Interview tip → Show you thought about the toggle being a normal, reviewed deploy, not a manual edit.

All Helm questions Roadmap: Helm

More on Chart Design & Authoring