Interview Prep/Helm/Releases, Upgrades & Rollbacks

You need zero-downtime upgrades of the API with Helm. What must be true in the chart?

IntermediateScenarioReleases, Upgrades & Rollbacks
Answer

Situation read → Helm only patches the Deployment; zero downtime depends on the pod spec and rollout settings.

What I'd do →

  1. strategy.rollingUpdate: { maxUnavailable: 0, maxSurge: 25% }.
  2. Readiness probes that reflect real readiness; preStop sleep of a few seconds and graceful SIGTERM handling with terminationGracePeriodSeconds.
  3. PDB with minAvailable or maxUnavailable: 1; at least two replicas.
  4. Backward-compatible DB changes.
  5. Do not set replicas when HPA is enabled.

Why → Rolling updates are only safe when Kubernetes knows when pods can and cannot take traffic.

Interview tip → Mention the preStop delay to cover endpoint propagation.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks