Skip to content
$ lynuxpro
← Helm

LESSON 1 OF 15 · BEGINNER · 18 MIN

Why Helm

Free previewLesson 1 of the 2 free lessons in this Pro course.Unlock all 15

HOW IT WORKSFrom a pile of YAML to a release

Plain YAMLcopied per environment
1/6

Without Helm, each environment gets its own copy of every manifest, and nothing records what is installed.

k8s/dev/deployment.yaml
k8s/prod/deployment.yaml

Deploying one small application to Kubernetes already takes a Deployment, a Service, a ConfigMap, a ServiceAccount and often an Ingress and an autoscaler. That is five or six YAML files. Now deploy the same application to dev, staging and production, each with different replica counts, image tags and hostnames, and keep track of what is running where. Helm is the tool almost every Kubernetes team uses for this. This lesson explains the problem it solves, the three ideas you need (chart, release, repository) and walks you through your first install.

In simple words

  • Helm: the package manager for Kubernetes. It installs, upgrades and removes whole apps made of many YAML files with one command.
  • Chart: a Helm package: a folder of templated Kubernetes YAML plus default settings.
  • Release: one installed copy of a chart in a cluster, with its own name and history.
  • Values: the settings you pass to a chart, such as image tag or replica count, to customise it without editing templates.

The problem with plain YAML

Imagine the shop API team keeps its manifests in a folder:

k8s/  deployment.yaml  service.yaml  configmap.yaml  serviceaccount.yaml  ingress.yaml
OUTPUTterminalutf-8 · 6L

This works for one environment. Then problems appear:

  • Copy and paste per environment. Production needs 4 replicas and a real hostname; dev needs 1 replica. Teams end up with k8s/dev/, k8s/prod/ and so on, and every change has to be made in several places.
  • No idea what is installed. kubectl apply -f k8s/ does not record that these five objects belong together, which version you deployed or what the previous version was.
  • No clean upgrade or rollback. If you delete a file, kubectl apply does not delete the object from the cluster. Rolling back means finding the old YAML in Git and hoping it still matches.
  • No sharing. If you want to run PostgreSQL, Grafana or cert-manager, you do not want to write their 30 manifests yourself.

What Helm gives you

Helm is a package manager for Kubernetes, in the same way apt is for Ubuntu or npm is for JavaScript. It adds three ideas:

IdeaWhat it isAnalogy
ChartA package: Kubernetes templates plus default settings (values)A .deb package
ReleaseOne installed copy of a chart in a cluster, with a name and a revision historyAn installed program
RepositoryA place to publish and download charts (HTTP server or OCI registry)An apt repository

The templates in a chart contain placeholders such as {{ .Values.replicaCount }}. When you install, Helm fills them in with values (the chart defaults, overridden by whatever you pass), sends the resulting YAML to the Kubernetes API, and records the result as revision 1 of a release. Every upgrade creates a new revision, so Helm always knows what is installed and can roll back to any earlier revision with one command.

The same chart installs to every environment; only the values change. That removes the copy-and-paste problem completely.

Helm 4 in one paragraph

This course uses Helm 4, released in November 2025 (the simulated terminal runs v4.3.0). Helm 4 keeps the same chart format as Helm 3 (apiVersion: v2 charts work unchanged), so almost everything you read about Helm 3 still applies. The main differences you will meet in this course:

  • New installs use Kubernetes server-side apply by default.
  • --atomic was renamed --rollback-on-failure, and --force became --force-replace. The old flags still work but print a deprecation warning.
  • Plugins got a new, typed format (lesson 15), and post-renderers are now plugins.
  • helm registry login takes just a host name, such as ghcr.io.
  • Charts can be installed by digest, so you know exactly which bytes you deploy.

Helm 3 gets bug fixes until September 2026 and security fixes until February 2027, so if your company still runs Helm 3 you have time, but new work should target Helm 4.

There is no server-side component. Helm is a single binary that talks to the Kubernetes API using your kubeconfig, exactly like kubectl. Whatever cluster and namespace kubectl points at, Helm points at too.

Check your setup

The practice terminal has Helm, kubectl and a small cluster ready. Check the version and where Helm keeps its files:

helm version --shorthelm env
SHELLbashutf-8 · 2L
v4.3.0+g7c5f1b3HELM_BIN="helm"HELM_CACHE_HOME="/home/lynuxpro/.cache/helm"HELM_CONFIG_HOME="/home/lynuxpro/.config/helm"HELM_DATA_HOME="/home/lynuxpro/.local/share/helm"HELM_KUBECONTEXT=""HELM_NAMESPACE="default"HELM_PLUGINS="/home/lynuxpro/.local/share/helm/plugins"HELM_REGISTRY_CONFIG="/home/lynuxpro/.config/helm/registry/config.json"HELM_REPOSITORY_CACHE="/home/lynuxpro/.cache/helm/repository"HELM_REPOSITORY_CONFIG="/home/lynuxpro/.config/helm/repositories.yaml"
OUTPUTterminalutf-8 · 11L

HELM_NAMESPACE="default" means releases go to the default namespace unless you pass -n. The config and cache paths matter later when you debug repositories and logins.

On your own machine, install Helm with your package manager (brew install helm, sudo snap install helm --classic, or winget install Helm.Helm) or the official script from helm.sh. Always check you got version 4 with helm version.

Your first install

podinfo is a tiny web app that is popular for demos. Add the repository that publishes its chart, then search it:

helm repo add podinfo https://stefanprodan.github.io/podinfohelm search repo podinfo
SHELLbashutf-8 · 2L
"podinfo" has been added to your repositoriesNAME           	CHART VERSION	APP VERSION	DESCRIPTIONpodinfo/podinfo	6.7.1        	6.7.1      	Podinfo Helm chart for Kubernetes
OUTPUTterminalutf-8 · 3L

The row shows two versions, and they mean different things. CHART VERSION is the version of the package (templates and defaults). APP VERSION is the version of the software inside it. They often move together, but a chart can get a new version (say, a fixed template) while the app stays the same.

Now install it. The pattern is always helm install RELEASE-NAME CHART:

helm install hello podinfo/podinfo
SHELLbashutf-8 · 1L
NAME: helloLAST DEPLOYED: Sun Nov 29 14:31:07 2026NAMESPACE: defaultSTATUS: deployedREVISION: 1TEST SUITE: NoneNOTES:1. Get the application URL by running these commands:  echo "Visit http://127.0.0.1:8080 to use your application"  kubectl -n default port-forward deploy/hello-podinfo 8080:9898
OUTPUTterminalutf-8 · 10L

The NOTES at the bottom come from the chart itself (a template called NOTES.txt) and usually tell you how to reach the app. Read them; chart authors put useful commands there.

See what Helm created

List your releases, then look at the Kubernetes objects:

helm listkubectl get deploy,svc
SHELLbashutf-8 · 2L
NAME 	NAMESPACE	REVISION	UPDATED                             	STATUS  	CHART        	APP VERSIONhello	default  	1       	2026-11-29 14:31:07.412345 -0700 MST	deployed	podinfo-6.7.1	6.7.1NAME            READY   UP-TO-DATE   AVAILABLE   AGEhello-podinfo   1/1     1            1           2mNAME            TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)    AGEkubernetes      ClusterIP   10.96.0.1     <none>        443/TCP    3dhello-podinfo   ClusterIP   10.96.30.12   <none>        9898/TCP   5s
OUTPUTterminalutf-8 · 8L

The object names start with the release name (hello-podinfo). That is a chart convention: it lets you install the same chart twice in one namespace, for example hello and hello2, without name clashes.

Where does Helm remember the release? In a Kubernetes Secret in the same namespace:

kubectl get secrets -l owner=helm
SHELLbashutf-8 · 1L
NAME                          TYPE                 DATA   AGEsh.helm.release.v1.hello.v1   helm.sh/release.v1   1      5s
OUTPUTterminalutf-8 · 2L

One Secret per revision, named sh.helm.release.v1.RELEASE.vREVISION. It holds the chart, the values and the rendered manifest (compressed and base64-encoded). Because the state lives in the cluster, anyone with access to the namespace sees the same releases, no matter which laptop installed them. Never edit or delete these Secrets by hand; they are Helm's memory.

Clean up

Uninstalling removes every object the release created, and the release records too:

helm uninstall hellohelm listkubectl get deploy
SHELLbashutf-8 · 3L
release "hello" uninstalledNAME	NAMESPACE	REVISION	UPDATED	STATUS	CHART	APP VERSIONNo resources found in default namespace.
OUTPUTterminalutf-8 · 3L

Compare that with plain kubectl: you would have to remember every object and delete them one by one.

When not to use Helm

Helm is not always the answer. For a single tiny app with one environment, plain YAML is simpler. Kustomize (built into kubectl apply -k) patches plain YAML per environment without a template language, and some teams prefer it for their own apps while still using Helm to install third-party software. Many teams combine both, and GitOps tools such as Argo CD (lesson 14) understand both. Helm shines when you need to package an app for many environments or many teams, share it, version it and roll it back.

Summary

  • Plain YAML does not scale to many environments, does not track what is installed and cannot roll back cleanly.
  • A chart is a package of templates and default values; a release is an installed copy with revision history; a repository publishes charts.
  • helm install NAME CHART renders the templates and creates revision 1. Helm stores each revision as a Secret in the release's namespace.
  • helm list shows releases; helm uninstall NAME removes everything a release created.
  • Helm 4 keeps the v2 chart format, applies server-side by default and renames --atomic to --rollback-on-failure.

Next you will learn how to find charts, read their settings and install them with your own values.

CHECK YOUR UNDERSTANDING

3 quick questions

  1. 1. Where does Helm store the record of a release?

  2. 2. What is the difference between CHART VERSION and APP VERSION?

  3. 3. Which flag in Helm 4 replaces --atomic?