A Helm upgrade failed halfway and now `helm upgrade` says "another operation is in progress". What do you do?
IntermediateScenarioDeployments and releases
Answer
Situation read → The release is stuck in pending-upgrade, usually because the CI job was killed or timed out mid-upgrade.
What I'd do →
- Check the release state:
helm history api -n prod --max 5
helm status api -n prod
- Confirm nothing is actually still running (no other pipeline job holding it).
- Roll back to the last
deployedrevision, which clears the pending state:
helm rollback api <last-good-revision> -n prod --wait
- Then rerun the upgrade with
--atomic --timeout 10mso future failures roll back automatically rather than leaving a stuck release. - Add pipeline concurrency control so two deploys to the same release can never overlap.
Why → Deleting the Helm release secret by hand works but is a last resort; rollback is the supported path.
Interview tip → Mention --atomic; it prevents this exact situation.
More on Deployments and releases
A deploy went out and p99 latency doubled. Walk me through it.IntermediateYou deployed a new version and half the pods are in CrashLoopBackOff. What do you do?BeginnerA release passed every test in staging but broke in production. How do you investigate?IntermediateHow would you design a zero-downtime deployment for a stateless API on Kubernetes?BeginnerEvery deploy causes a short spike of 502 errors from the ALB. Why, and how do you fix it?IntermediateHow would you set up a canary release, and what decides whether it gets promoted?Intermediate