Interview Prep/Helm/Releases, Upgrades & Rollbacks

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 →

  1. Do not roll back blindly; check migration content and the previous code's DB expectations.
  2. If data is lost, restore the column from backup or PITR into a new column and backfill, or fix forward with a hotfix image.
  3. Communicate the impact and decide between restore and fix forward with the data owner.
  4. Prevent: expand/contract migrations, never destructive changes in the same release as code changes, mandatory backups in a pre-upgrade hook for risky migrations.

Why → Helm rollback covers Kubernetes objects only.

Interview tip → State clearly that Helm cannot roll back a database.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks