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 →
strategy.rollingUpdate: { maxUnavailable: 0, maxSurge: 25% }.- Readiness probes that reflect real readiness;
preStopsleep of a few seconds and gracefulSIGTERMhandling withterminationGracePeriodSeconds. - PDB with
minAvailableormaxUnavailable: 1; at least two replicas. - Backward-compatible DB changes.
- Do not set
replicaswhen 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.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerWhy would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateA pipeline was cancelled mid-upgrade and now every deploy fails with "another operation is in progress". What do you do?AdvancedA rollback is requested, but the failed release ran a migration that dropped a column. What do you do?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.IntermediateHow do you safely upgrade a third-party chart across a major version (for example ingress-nginx)?Advanced