Interview Prep/Helm/Releases, Upgrades & Rollbacks

Someone uninstalled the production release by mistake. How do you recover, and how do you prevent it?

AdvancedScenarioReleases, Upgrades & Rollbacks
Answer

Situation read → Workloads are gone; PVCs may also be gone unless kept.

What I'd do →

  1. If --keep-history was used: helm rollback shop <rev>.
  2. Otherwise reinstall from the same chart version and values in Git: helm upgrade --install ....
  3. Check PVCs: if retained (resource-policy: keep or Retain reclaim policy), new pods rebind; otherwise restore from backups (Velero, snapshots).
  4. Prevent: RBAC so humans cannot delete in prod, helm.sh/resource-policy: keep on PVCs and critical Secrets, GitOps with prune protections, and Velero schedules.

Why → Reproducible deploys from Git make reinstall trivial; data needs its own protection.

Interview tip → Separate "recreate workloads" (easy) from "recover data" (needs backups).

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks