Lesson 132 · Section 11: Helm & Kustomize
Lesson 132: Helm basics: charts, releases and repositories
What Helm is and why clusters use it: charts, values, releases and repositories, how Helm turns a chart into objects and where it keeps its history, and the first commands to find, install, list and remove an application. · 18 min read · 2 min video
Official competency this lesson covers
Narrated by the local narrator voice. Keys: Space plays and pauses, J and L step, C captions, F full screen.
What Helm is for
A Deployment and a Service are easy to write by hand. A real add-on is not: an ingress controller, a metrics stack or a storage driver each bring a dozen or more objects (ServiceAccounts, RBAC, ConfigMaps, Deployments, Services, webhooks, CRDs). Writing them yourself is slow, and changing one setting in all the right places is error-prone.
Helm is the package manager for Kubernetes. Somebody who knows the application writes the manifests once, as templates with settings, and publishes them as a chart. You install the chart with the settings you want, and Helm keeps track of what it installed so that you can upgrade, roll back or remove it as one unit.
Parts:
- Repository (a shelf of charts)
- Chart (templates + defaults)
- Your values (-f / --set)
- helm install (renders, then applies)
- Release web (namespace shop)
- Release web-test (namespace test)
Connections:
- Repository to Chart: download
- Chart to helm install
- Your values to helm install
- helm install to Release web
- helm install to Release web-test
In the CKA curriculum, Helm appears under "Use Helm and Kustomize to install cluster components". Expect tasks
such as "install chart X from repository Y as release Z in namespace N with this setting", "upgrade the release",
"roll back to the previous revision" or "find which chart version is installed". The helm binary is already on
the exam machine.
The words in detail
| Word | What it is | Example |
|---|---|---|
| Chart | A folder (or a .tgz of it) with Chart.yaml, values.yaml and templates/ | podinfo/podinfo |
| Chart version | The version of the package itself, from Chart.yaml version | 6.9.2 |
| App version | The version of the software inside, from Chart.yaml appVersion | 6.9.2 (podinfo); often differs from the chart version |
| Values | The settings a chart accepts; defaults in its values.yaml, yours from -f or --set | replicaCount: 3 |
| Release | One installed copy: a name, a namespace, a chart, values | web in shop |
| Revision | A numbered version of a release; install is 1, each upgrade or rollback adds one | REVISION: 4 |
| Repository | An HTTP server with an index.yaml listing charts, or an OCI registry | https://stefanprodan.github.io/podinfo |
How it works
Parts:
- templates/ (with {{ .Values }})
- values (chart + yours)
- Render (on your machine)
- Plain manifests (Deployment, Service)
- kube-apiserver (creates objects)
- Release record (Secret, revision 1)
Connections:
- templates/ to Render
- values to Render
- Render to Plain manifests
- Plain manifests to kube-apiserver
- Render to Release record: records the release
- Helm loads the chart and merges its default
values.yamlwith the values you give. - It renders every file in
templates/with Go templates.{{ .Values.replicaCount }}becomes3,{{ .Release.Name }}becomesweb. The result is plain YAML, the same you would write by hand. - It sends those manifests to the API server with your kubeconfig, exactly as kubectl would. Your RBAC rules apply: if you cannot create a ClusterRole, neither can Helm.
- It stores a release record (the chart, the values and the rendered manifest) as a Secret in the release's
namespace, named
sh.helm.release.v1.<release>.v<revision>.
kubectl -n shop get secrets -l owner=helm
NAME TYPE DATA AGE
sh.helm.release.v1.web.v1 helm.sh/release.v1 1 3m
sh.helm.release.v1.web.v2 helm.sh/release.v1 1 40s
Those Secrets are how helm list, helm history and helm rollback know what happened. Delete them and Helm
forgets the release, while the objects it created keep running.
Under the hood · Helm 2, 3 and 4: why there is no Tiller
Helm 2 ran a server component called Tiller inside the cluster, with broad permissions, and old tutorials still
mention helm init. Helm 3 removed it: everything happens in the client with your own credentials, and release
records moved into the release's namespace. Helm 4 (released in late 2025; Helm 3 reached end of life in 2026)
keeps that model. Its visible changes for an administrator are small: server-side apply for new installs, a new
--wait strategy, and renamed flags (--atomic became --rollback-on-failure, --force became
--force-replace, the old names still work with a warning). Everything in this section works on both 3 and 4.
Check yours with helm version.
Installing Helm
On the exam Helm is installed. On your own machine, use a package manager or the official script:
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4 | bash
helm version
version.BuildInfo{Version:"v4.0.1", GitCommit:"...", GoVersion:"go1.25.4"}
Helm needs nothing in the cluster. It uses the same kubeconfig and current context as kubectl, so
kubectl config current-context tells you which cluster Helm will change.
Using it: from nothing to a running application
Parts:
- repo add (name + URL)
- repo update (fresh index)
- search repo (chart + versions)
- show values (what can change)
- install (release + chart)
- list / status (deployed?)
Connections:
- repo add to repo update
- repo update to search repo
- search repo to show values
- show values to install
- install to list / status
Example · Install podinfo from a repository
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm repo update # refresh the local copy of every repository's index
helm search repo podinfo # charts whose name or description matches
helm search repo podinfo/podinfo --versions | head -5
helm show values podinfo/podinfo | less # every setting and its default
helm install web podinfo/podinfo -n shop --create-namespace --set replicaCount=2
NAME: web
LAST DEPLOYED: Fri Dec 4 09:41:12 2026
NAMESPACE: shop
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl -n shop port-forward deploy/web-podinfo 8080:9898
Then check, with Helm and with kubectl:
helm list -n shop
helm status web -n shop
kubectl -n shop get deploy,svc
Most charts name their objects after the release (web-podinfo here) and put the release name in a label such as
app.kubernetes.io/instance, so -l app.kubernetes.io/instance=web usually selects what one release created.
Check which label your chart uses with kubectl get deploy --show-labels.
The argument order is release name first, then chart: helm install NAME CHART. If you do not care about the
name, helm install podinfo/podinfo --generate-name picks one.
Where a chart can come from
| Form | Example |
|---|---|
| A repository you added | helm install web podinfo/podinfo |
| A repository URL, without adding it | helm install web podinfo --repo https://stefanprodan.github.io/podinfo |
| An OCI registry | helm install web oci://ghcr.io/stefanprodan/charts/podinfo |
| A local folder | helm install web ./mychart |
| A packaged file | helm install web ./podinfo-6.9.2.tgz |
OCI registries need no repo add: the chart is addressed like an image. helm search repo does not see them, so
use helm show chart oci://... to read its metadata.
Removing a release
helm uninstall web -n shop
This deletes every object the release created and its history. Two things are commonly left behind on purpose:
CRDs the chart installed from its crds/ folder (Helm never deletes them, because that would delete every
custom resource in the cluster) and PersistentVolumeClaims created by StatefulSets. Add --keep-history if you
want helm list --uninstalled to remember it.
Tricks
Common mistakes
- Swapping the arguments:
helm install podinfo/podinfo webfails or installs with odd names. Name first, then chart. - Forgetting
helm repo updateafter adding a repository long ago: the newest chart version is not found. - Installing into
defaultbecause-nwas left out, then not finding the release in the right namespace. - Confusing chart version and app version when a task asks for a specific version.
- Expecting
helm uninstallto remove CRDs. It never does. - Deleting the release Secrets to "clean up": the objects keep running, but Helm can no longer manage them.
Recap
- Chart = package; values = settings; release = one installed copy with a name in a namespace; each change adds a revision.
- Helm renders templates on your machine, applies plain manifests with your credentials, and stores release records as Secrets in the release namespace.
helm repo add,helm repo update,helm search repo,helm show values,helm install NAME CHART -n NS,helm list -A,helm status,helm uninstall.- The next lesson goes deeper into values and templates; the one after into upgrades and rollbacks.
Official docs
Quiz: check what you learned
5 questions on this lesson · about 3 min · instant feedback. Missed questions come back in your review queue.
Sign in to take the quiz and keep your score.
Practise: try it on a real cluster
A hands-on lab for this lesson. You get goals, not steps: any solution that reaches them passes.
Add a Helm repository, install metrics-server from its chart with the values the cluster needs, and look up chart versions.
Build · Level 2 · standard · target 20 min
Discussion
Learners ask and answer questions here. Sign in to read and join the discussion.