Helm release lifecycle
A release has its own history
A release is identified by its name within its release namespace. Installing a reviewed chart creates an initial revision. Upgrading changes the release configuration and normally creates another revision. Rollback uses an earlier revision as a target and records a new revision. These are Helm records, not Deployment ReplicaSet revisions or chart version numbers. A chart version can remain unchanged while release revisions increase.
revision 1: chart 0.1.0, replicas 2revision 2: chart 0.1.0, replicas 3revision 3: rollback to revision 1, replicas 2Review before changing anything
The commands below are illustrative and require an explicitly approved disposable cluster, reviewed deployable image and precreated namespace. The included chart is not suitable for installation because its image is deliberately invalid. Check the exact Helm version, explicit lab kubeconfig, context, namespace, rendered resource names, permissions and expected cost. Never run these commands against your normal context. Helm 3 and 4 share these basic commands, but flags for failure handling and waiting differ; check local help.
helm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study install demo ./catalog -f dev.yamlUpgrade with an explicit input policy
An upgrade can use a changed chart or new values. Prefer complete reviewed overrides from version control rather than an accidental mix of old and new settings. --reuse-values and --reset-values affect how the previous release configuration is combined; inspect the selected version help and render the intended values before choosing them. In this example the staging file is complete for the intended override keys. No upgrade can guarantee application compatibility or database safety.
helm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study upgrade demo ./catalog -f staging.yamlInspect before rollback
Use list to discover releases in the approved namespace, status to inspect a release, history to identify a known good revision, and get values or get manifest to examine stored configuration. Outputs may contain sensitive values: keep them private. A deployed status does not establish that the HTTP application works. Compare readiness, application tests and the release history before deciding to revert.
helm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study history demohelm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study status demohelm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study get values demoRollback and removal boundaries
The synthetic history shows rollback from revision 2 to the configuration in revision 1, resulting in revision 3. This does not undo external database migrations, deleted data or other side effects. Uninstall removes resources managed by the release subject to retention and resource-specific rules; retained objects, persistent data and CRDs can outlive it. By default history is removed; --keep-history retains release history. Review storage, dependencies and scope first. These commands illustrate separate decisions, not a script to run together.
helm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study rollback demo 1# Only for explicitly approved lab cleanup:helm --kubeconfig ./lab.kubeconfig --kube-context study -n helm-study uninstall demoPractice
Read history.json in the fixture. Identify the current revision, its replica count and what a rollback to revision 2 would target. Explain why checking the release status is not a substitute for application testing.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Helm release lifecycle — knowledge check
Apply the lesson concepts to the original offline chart and release scenarios.
What is the current revision after rollback in the synthetic history?
Which command identifies earlier release revisions?
What must be considered separately from rollback?
Which flag preserves release history during uninstall?
What is a safe upgrade input strategy?