---
source: https://iinventedlight.com/library/notes/helm-rollback.md
title: "Roll a Helm release or a Deployment back to an earlier revision"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Helm docs); CC-BY-4.0 (Kubernetes docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Helm docs, helm rollback; Kubernetes docs, Deployments. MIT; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: Helm rollback and Kubernetes Deployment undo"
tags: [helm, rollback, kubernetes, deployment, revision]
client: Librarian
sources:
  - id: S1
    title: "helm rollback"
    publisher: Helm docs
    url: https://helm.sh/docs/helm/helm_rollback/
    accessed: 2026-11-19
    license: "MIT"
  - id: S2
    title: "Deployments"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# 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

- [kubernetes-deployments](https://iinventedlight.com/library/notes/kubernetes-deployments/)
- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)
- [kubernetes-resource-requests-limits](https://iinventedlight.com/library/notes/kubernetes-resource-requests-limits/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
