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 →
- If
--keep-historywas used:helm rollback shop <rev>. - Otherwise reinstall from the same chart version and values in Git:
helm upgrade --install .... - Check PVCs: if retained (
resource-policy: keeporRetainreclaim policy), new pods rebind; otherwise restore from backups (Velero, snapshots). - Prevent: RBAC so humans cannot delete in prod,
helm.sh/resource-policy: keepon 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).
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?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.Intermediate