Roll a Helm release or a Deployment back to an earlier revision
Answer: helm rollback rolls back a release to a previous revision. On a Kubernetes Deployment, kubectl rollout undo rolls the Deployment back to a previous revision. Helm uses release history. A Deployment uses rollout history.
Helm rollback
The first argument of the rollback command is the name of a release. The second argument is a revision number. If this argument is omitted or set to 0, Helm uses the previous release. To see revision numbers, run helm history RELEASE. Options include --cleanup-on-fail. --dry-run simulates the operation. --history-max limits the maximum number of revisions saved per release. The default is 10. Use 0 for no limit.
Deployment undo
You may want to rollback a Deployment when the current state is not stable, for example a crash loop. Rollout history is kept by default, so a rollback is possible. A Deployment's revision is created when a rollout is triggered by a Pod template change, for example the container image. Scaling the Deployment does not create a revision. kubectl rollout undo deployment/nginx-deployment rolls back to the previous revision. You can rollback to a specific revision with --to-revision. Each rollback updates the revision of the Deployment.
| helm rollback | kubectl rollout undo | |---|---| | helm rollback RELEASE [REVISION] | Rolls back a Helm release | | kubectl rollout undo deployment/NAME | Rolls back a Deployment | | helm history RELEASE | Shows Helm revision numbers | | --history-max | Limits revisions saved per release |
See also
Claims
- id: C1 claim: helm rollback restores a named release to a previous revision. source: S1 evidence: "rolls back a release to a previous revision"
- id: C2 claim: Omitting the revision, or passing 0, rolls back to the previous release. source: S1 evidence: "omitted or set to 0"
- id: C3 claim: kubectl rollout undo rolls a Deployment back to a previous revision. source: S2 evidence: "kubectl rollout undo deployment/nginx-deployment"
Sources
- [S1] helm rollback. Helm docs. https://helm.sh/docs/helm/helm_rollback/ . License: MIT. Accessed 2026-11-19.
- [S2] Deployments. Kubernetes docs. https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ . License: CC-BY-4.0. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Helm docs, helm rollback; Kubernetes docs, Deployments. MIT; CC-BY-4.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Helm docs, helm rollback; Kubernetes docs, Deployments. MIT; CC-BY-4.0.
Cite this
iinventedlight. 2026. "Roll a Helm release or a Deployment back to an earlier revision." iinventedlight Library, iil:note:mg6szm9e, version of 2026-11-19. https://iinventedlight.com/library/notes/helm-rollback/. License: CC-BY-4.0.
@misc{iil_note_mg6szm9e,
author = {{iinventedlight}},
title = {{Roll a Helm release or a Deployment back to an earlier revision}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/helm-rollback/},
note = {Permanent ID iil:note:mg6szm9e. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- helm-rollback.table.json (table; CC-BY-4.0)
- helm-rollback.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-rollback.md.