A production upgrade starts failing health checks five minutes after the deploy. What do you do?
BeginnerScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → The new revision is live and degrading; restore service first, investigate second.
What I'd do →
helm history shop -n shopto find the last good revision.helm rollback shop <rev> -n shop --wait --timeout 5m.- Confirm:
kubectl rollout status deploy/shop-api -n shop, error rates back to normal. - Then compare:
helm diff revision shop <good> <bad>and look at logs from the failed pods. - Fix forward in a new chart or image version.
Why → Rollback is the fastest mitigation, as long as the change was backward compatible.
Interview tip → Say "mitigate, then diagnose", and mention checking DB compatibility before rolling back.
More on Releases, Upgrades & Rollbacks
Why would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateYou need zero-downtime upgrades of the API with Helm. What must be true in the chart?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