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 →
- Add
maintenance.enabledand render a small nginx Deployment with a ConfigMap page when true. - Switch the Service selector or Ingress backend to the maintenance component in the same render.
- Toggle through the normal pipeline: the full values files plus
--set maintenance.enabled=true(not--reuse-values), or a one-line commit in GitOps. - 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.
More on Chart Design & Authoring
Your team has 15 near-identical YAML folders, one per microservice per environment. How do you introduce Helm?BeginnerShould you build one generic chart for all microservices or one chart per service?IntermediateA developer hardcoded `namespace: production` in every template. What is wrong and how do you fix it?BeginnerChanging a ConfigMap value in the chart does not restart the pods, so the app keeps old config. What do you change?IntermediateYou need the same chart to support both Ingress and Gateway API HTTPRoute. How do you design it?IntermediateYour chart's Deployment template has grown to 300 lines of nested `if`s. How do you clean it up?Intermediate