Fix Helm Upgrade Failed and Rollback
Debug failed Helm releases stuck in pending-upgrade or failed state. Covers atomic upgrades, manual rollback, secret storage cleanup, and history limits.
π‘ Quick Answer: Debug failed Helm releases stuck in pending-upgrade or failed state. Covers atomic upgrades, manual rollback, secret storage cleanup, and history limits.
The Problem
This is a common issue in Kubernetes helm that catches both beginners and experienced operators.
The Solution
Step 1: Check Release Status
helm list -a
# STATUS: failed, pending-upgrade, pending-installStep 2: Fix by Status
Failed β rollback:
# View history
helm history my-release
# Rollback to last working revision
helm rollback my-release 3
# Or uninstall and reinstall
helm uninstall my-release
helm install my-release ./my-chartPending-upgrade β stuck release:
# Helm stores state in secrets
kubectl get secrets -l owner=helm,status=pending-upgrade
# Delete the pending secret to unblock
kubectl delete secret sh.helm.release.v1.my-release.v5
# Then retry
helm upgrade my-release ./my-chartPrevent future failures:
# Use --atomic for auto-rollback on failure
helm upgrade --install my-release ./my-chart --atomic --timeout 10m
# Limit history to prevent secret buildup
helm upgrade my-release ./my-chart --history-max 5Best Practices
- Monitor proactively with Prometheus alerts before issues become incidents
- Document runbooks for your teamβs most common failure scenarios
- Use
kubectl describeand events as your first debugging tool - Automate recovery where possible with operators or scripts
Key Takeaways
- Always check events and logs first β Kubernetes tells you whatβs wrong
- Most issues have clear error messages pointing to the root cause
- Prevention through monitoring and proper configuration beats reactive debugging
- Keep this recipe bookmarked for quick reference during incidents

Recommended
Kubernetes Recipes β The Complete Book100+ production-ready patterns with detailed explanations, best practices, and copy-paste YAML. Everything in one place.
Get the Book βLearn by Doing
CopyPasteLearn β Hands-on Cloud & DevOps CoursesMaster Kubernetes, Ansible, Terraform, and MLOps with interactive, copy-paste-run lessons. Start free.
Browse Courses βπ Deepen Your Skills β Hands-on Courses
Courses by CopyPasteLearn.com β Learn IT by Doing
