Releases: Install, Upgrade, Rollback
Rendering is half of Helm. The other half is the release: one installation of a chart under a name in a namespace, with a numbered history of revisions. Install creates revision 1, every upgrade or rollback adds one, and each revision records the chart, the values and the rendered manifest, which is what makes rollback possible.
A dry run without a cluster
helm install --dry-run=client runs the whole install logic (values, schema, rendering, NOTES) and prints the release Helm would create, without contacting a cluster. Unlike helm template, it shows the release record itself. The LAST DEPLOYED line holds the current time, so the session filters it out:
mkdir -p linkly/templates && cd linkly
printf 'apiVersion: v2\nname: linkly\nversion: 0.8.0\nappVersion: "1.4.0"\n' > Chart.yaml
printf 'replicaCount: 2\n' > values.yaml
cat > templates/configmap.yaml <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
data:
replicas: {{ .Values.replicaCount | quote }}
EOF
cat > templates/NOTES.txt <<'EOF'
linkly {{ .Chart.AppVersion }} is installed as "{{ .Release.Name }}" in {{ .Release.Namespace }}.
Check it with: kubectl get pods -n {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}
EOF
helm install web . -n linkly --dry-run=client | grep -v 'LAST DEPLOYED'
echo "--- anything that reads release history needs a cluster:"
helm list -n linklyNAME: web
NAMESPACE: linkly
STATUS: pending-install
REVISION: 1
DESCRIPTION: Dry run complete
TEST SUITE: None
HOOKS:
MANIFEST:
---
# Source: linkly/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: web-config
data:
replicas: "2"
NOTES:
linkly 1.4.0 is installed as "web" in linkly.
Check it with: kubectl get pods -n linkly -l app.kubernetes.io/instance=web
--- anything that reads release history needs a cluster:
Error: kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp [::1]:8080: connect: connection refused
NOTES.txt is a template too, printed after install and upgrade: use it for the two or three commands a user needs next. --dry-run=server goes further and sends the objects to the API server for validation and admission without persisting them; that needs a cluster, like everything below.
The lifecycle (sample sessions)
The following commands need a cluster, so their output is a sample in Helm 4's format, not a recorded run.
helm install web oci://registry.example.com/charts/linkly --version 0.8.0 \
-n linkly --create-namespace -f values-prod.yaml --wait
helm upgrade web oci://registry.example.com/charts/linkly --version 0.8.1 \
-n linkly -f values-prod.yaml --set-string image.tag=1.4.1 --wait --rollback-on-failure
helm history web -n linklyREVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Jan 13 10:31:52 2026 superseded linkly-0.8.0 1.4.0 Install complete
2 Tue Jan 13 10:42:07 2026 deployed linkly-0.8.1 1.4.1 Upgrade completeThen a bad upgrade, and a rollback by hand:
helm upgrade web oci://registry.example.com/charts/linkly --version 0.8.1 \
-n linkly -f values-prod.yaml --set-string image.tag=1.5.0
helm rollback web 2 -n linkly --wait
helm history web -n linklyREVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Jan 13 10:31:52 2026 superseded linkly-0.8.0 1.4.0 Install complete
2 Tue Jan 13 10:42:07 2026 superseded linkly-0.8.1 1.4.1 Upgrade complete
3 Tue Jan 13 11:05:40 2026 superseded linkly-0.8.1 1.5.0 Upgrade complete
4 Tue Jan 13 11:09:12 2026 deployed linkly-0.8.1 1.4.1 Rollback to 2A rollback doesn't rewind history: it creates revision 4 with revision 2's chart, values and manifest. The other commands you'll use:
| Command | Does |
|---|---|
helm list -n ns (-A for all namespaces) |
releases with their current revision and status |
helm status web |
the current revision's status and NOTES |
helm get values web [--all] [--revision 2] |
user-supplied (or all merged) values |
helm get manifest web |
the rendered manifest Helm applied |
helm upgrade --install web … |
install if missing, otherwise upgrade: the usual form in CI |
helm uninstall web [--keep-history] |
delete the release's objects (not hook objects, not PVCs created by StatefulSets) |
Waiting and failing safely
By default helm install/upgrade returns as soon as the API server accepts the objects; it waits only for hooks. Add --wait to wait until the new objects are ready, up to --timeout (default 5m0s). Helm 4 offers strategies:
--wait= |
Behaviour |
|---|---|
hookOnly |
the default: wait for hooks only |
watcher (--wait alone) |
watch the objects with kstatus, the readiness rules shared with other Kubernetes tools: Deployments rolled out, Jobs complete, custom resources reporting Ready |
legacy |
Helm 3's polling implementation |
--rollback-on-failure (Helm 3: --atomic) rolls back a failed upgrade, or uninstalls a failed install, and implies --wait=watcher. Add --cleanup-on-fail to delete objects a failed upgrade created. In CI, helm upgrade --install --wait --rollback-on-failure --timeout 10m is the common baseline: a deploy either completes or leaves the previous revision running.
Where releases live
Each revision is stored as a Secret in the release's namespace, named sh.helm.release.v1.<release>.v<revision>, with type helm.sh/release.v1. Its release field holds the whole revision, gzipped JSON, base64-encoded (and Kubernetes base64-encodes Secret data once more). A model of how the record is packed and read back:
import base64, gzip, json
release = {"name": "web", "namespace": "linkly", "version": 2,
"info": {"status": "deployed", "description": "Upgrade complete"},
"chart": {"metadata": {"name": "linkly", "version": "0.8.1", "appVersion": "1.4.1"}},
"config": {"image": {"tag": "1.4.1"}}}
# What Helm stores: base64(gzip(json)); mtime=0 keeps the bytes reproducible here.
helm_blob = base64.b64encode(gzip.compress(json.dumps(release).encode(), mtime=0))
secret_data = base64.b64encode(helm_blob) # Secret .data values are base64 again
print("secret name:", f"sh.helm.release.v1.{release['name']}.v{release['version']}")
print("stored size:", len(secret_data), "bytes")
# Reading it back, like: kubectl get secret … -o jsonpath='{.data.release}' | base64 -d | base64 -d | gunzip
decoded = json.loads(gzip.decompress(base64.b64decode(base64.b64decode(secret_data))))
print(decoded["info"]["status"], decoded["chart"]["metadata"]["version"], decoded["config"])secret name: sh.helm.release.v1.web.v2
stored size: 296 bytes
deployed 0.8.1 {'image': {'tag': '1.4.1'}}
Consequences worth knowing:
- Every value you pass, including secrets passed with
--set, is stored in these Secrets. Anyone who can read Secrets in the namespace can read them. - History is capped by
--history-max(default 10 on upgrade); older revisions are deleted, and you can't roll back to them. HELM_DRIVERcan store releases in ConfigMaps (configmap), in memory, or in SQL instead of Secrets.
Helm 4: server-side apply
Helm 3 applied changes with a three-way merge computed on the client. Helm 4 uses Kubernetes server-side apply for new installs: the API server merges, tracks which manager owns each field, and reports conflicts when another manager (say, kubectl edit or an HPA) owns a field Helm wants to change. Upgrades and rollbacks keep the method the release was created with, so a release installed by Helm 3 stays on client-side apply until you pass --server-side=true. --force-conflicts takes ownership of conflicting fields; --force-replace (Helm 3: --force) deletes and recreates objects, and causes downtime.
Test yourself
After revisions 1, 2 and 3, you run helm rollback web 1. What is the new current revision?
- 1
- 3
- 4
- 0
What is the Helm 4 name for Helm 3's --atomic?
- --wait
- --rollback-on-failure
- --cleanup-on-fail
- --force-replace
Where does Helm keep a release's history by default?
- In ~/.config/helm on the machine that ran helm
- In Secrets in the release's namespace
- In the chart repository
- In etcd under /helm