A rollback is requested, but the failed release ran a migration that dropped a column. What do you do?
AdvancedScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → Rolling back the pods brings back code that reads a column that no longer exists; Helm will happily do it and break things further.
What I'd do →
- Do not roll back blindly; check migration content and the previous code's DB expectations.
- If data is lost, restore the column from backup or PITR into a new column and backfill, or fix forward with a hotfix image.
- Communicate the impact and decide between restore and fix forward with the data owner.
- Prevent: expand/contract migrations, never destructive changes in the same release as code changes, mandatory backups in a
pre-upgradehook for risky migrations.
Why → Helm rollback covers Kubernetes objects only.
Interview tip → State clearly that Helm cannot roll back a database.
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?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?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