Manage Helm Releases
Intermediate12 min
Upgrade, rollback, and manage the lifecycle of Helm releases with revision history, atomic upgrades, and cleanup strategies.
Prerequisites
- -Helm 3 installed
- -An existing Helm release in a cluster
Steps
1
Check current release status
View the current state and revision of a release.
$ helm status my-release --namespace production
2
Upgrade a release with new values
Apply new configuration to an existing release.
$ helm upgrade my-release bitnami/nginx --namespace production --set replicaCount=3 --atomic --timeout 5m
The --atomic flag automatically rolls back the upgrade if it fails, preventing broken deployments.
3
View release history
List all revisions of a release for auditing and rollback reference.
$ helm history my-release --namespace production
4
Rollback to a previous revision
Revert a release to a known-good state.
$ helm rollback my-release 2 --namespace production --wait
Rollback creates a new revision, it does not delete history. Verify the target revision number with 'helm history' first.
5
Uninstall a release
Remove a release and its associated resources from the cluster.
$ helm uninstall my-release --namespace production --keep-history
Use --keep-history to preserve release records for auditing. Without it, all history is deleted.
Full Script
FAQ
Discussion
Loading comments...