Helm Install, Upgrade and Rollback
Helm is a package manager with a memory: every install and upgrade is a revision it can go back to. The five commands that cover almost everything are template, install, upgrade, history and rollback, and all five are here against a chart created locally so nothing depends on a reachable repository.
Application Deployment Guide 21 of 44 Intermediate
- Kubernetes1.36.4
- Cluster4 nodes
- Runtimecontainerd 2.2.6
- CNICalico v3.32.1
- TimeAbout 16 min
Helm 3 has no Tiller and stores each release revision as a Secret of type helm.sh/release.v1 in the release's own namespace. That is why helm list is namespaced, why deleting a namespace destroys the release history with it, and why anyone with Secret read access in that namespace can read the release.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| CKA1001 | 192.168.0.175 | Ubuntu 26.04 LTS | Control Plane Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE01 | 192.168.0.176 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE02 | 192.168.0.177 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
| CKA1001-NODE03 | 192.168.0.178 | Ubuntu 26.04 LTS | Worker Node | 2 Core | 4 GB | 50 GB |
This guide includes
Use this when a chart has to be installed, changed and rolled back under time pressure. This matters because Helm keeps every revision as a Secret in the namespace - which is what makes a rollback one command instead of a redeploy.
- scaffolding a readable chart with
helm create - rendering it locally with
helm template, sending nothing to any cluster - installing it, and reading the release, its revision and its status
- upgrading with different values and then taking it straight back
- finding the release state stored as
sh.helm.release.v1Secrets
Before you start
- Helm 3 installed.
helm version --shorton this cluster reports v3.18.5. - The session creates a chart with
helm create, installs it as releasewebin namespaceckad-helm, upgrades it, rolls it back, and uninstalls it.
-
A chart you can read
-
Render it without a cluster
-
Install, and look at the release
-
Upgrade, then take it back
-
Where the state actually lives