In 15 minutes, you will install Helm and deploy your first application on Kubernetes. By the end of this guide, you will know how to install a public chart, check the deployment and uninstall it cleanly, the 3 basic operations you will use every day. You will also see how to update a release and read its history.
What you will learn
- Install Helm on Linux, macOS or Windows
- Understand the 4 essential terms: chart, release, repo, values
- Deploy a first public chart (
kube-state-metrics) in one command withhelm install - Check that everything works with
helm list,helm statusandkubectl - Update a release with
helm upgradeand read its history - Uninstall cleanly and recognize the errors of a first deployment
Prerequisites: a working Kubernetes cluster, kind for this course, with kubectl configured. If that is not the case, read the Kubernetes guide first.
Why use Helm?
Imagine you have to deploy an application on Kubernetes. Without Helm, you write several YAML files by hand (Deployment, Service, ConfigMap, Secret...), then apply them one by one with kubectl apply. If you have 10 environments, you duplicate these files ten times. And when it is time to update? You edit each file by hand, hoping not to forget anything.
Helm solves this problem by grouping all these files into a package called a "chart". A chart is like a cooking recipe: it contains all the ingredients (the YAML files) and the instructions (the templates). You adjust the quantities through a configuration file (values.yaml), and Helm automatically generates all the Kubernetes manifests.
Before / After Helm
| Without Helm | With Helm |
|---|---|
| 10 YAML files to maintain | 1 versioned chart |
| "Which version is in prod?" → grep the logs | helm list → version, date, status |
| Rollback = find the old files | helm rollback myapp 2 |
| Dev/prod config = duplicate all the YAML | 1 chart + values-dev.yaml / values-prod.yaml |
| Update = edit every file | helm upgrade with the new values |
The concept to remember fits in one equation: a release equals a chart, plus values, plus a version. When you install a chart with given values, Helm creates a named release and gives it a revision. This release is versioned: you can read its history and go back at any time, which a kubectl apply does not allow, since it keeps no history of the previous states.
What is the minimal Helm vocabulary?
Before installing anything, let us understand the 4 terms you will see everywhere:
Chart
A chart is a Helm package. It contains:
- YAML templates (Deployment, Service, etc.) with variables
- A
values.yamlfile with the default values - A
Chart.yamlfile with the metadata (name, version, description)
Concretely, a chart is a folder with this structure:
Répertoiremychart/
- Chart.yaml Name, version, description
- values.yaml Default values
Répertoiretemplates/ YAML files with variables
- deployment.yaml
- service.yaml
- _helpers.tpl
Release
A release is an instance of a chart installed on your cluster. When you run helm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0, you create a release named my-metrics.
You can install the same chart several times with different names, and each installation is a distinct release:
helm install metrics-prod prometheus-community/kube-state-metrics --version 5.27.0 -f values-prod.yamlhelm install metrics-dev prometheus-community/kube-state-metrics --version 5.27.0 -f values-dev.yamlRepository (repo)
A repository is a server that hosts charts. It is like an "app store" for Helm. The best known:
| Repo | URL | Content |
|---|---|---|
| prometheus-community | https://prometheus-community.github.io/helm-charts | Monitoring charts (Prometheus, Grafana, exporters) |
| ingress-nginx | https://kubernetes.github.io/ingress-nginx | Community ingress controller, archived since March 24, 2026: do not choose it for a new cluster (see the Ingress page) |
Values
The values are the parameters you pass to the chart to customize it. Each chart defines default values in values.yaml, which you can override:
# Use the default valueshelm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0
# Override one valuehelm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 --set replicas=3
# Override through a filehelm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 -f my-values.yamlHow do you install Helm?
Helm is a single binary with no dependencies, and a client only: it installs nothing in the cluster and keeps the state of each release in Kubernetes Secrets. The installation takes less than a minute.
On Linux, the method of this course pins the version and checks the digest of the archive: you download Helm v4.3.2 from get.helm.sh, you verify its SHA-256, then you copy the binary into the PATH. The complete commands, with the verification, are in the lesson The Helm commands.
A package manager of your distribution installs faster, but it may deliver a different version from the one used in this course: check the result with helm version.
# Via Homebrewbrew install helmThen check the version with helm version --short: the course assumes Helm v4.3.x.
# Via Chocolateychoco install kubernetes-helm
# Via Scoopscoop install helm
# Via wingetwinget install Helm.HelmThen check the version with helm version --short: the course assumes Helm v4.3.x.
How do you check the installation?
The helm version command confirms that the binary answers, and it tells you which Kubernetes versions this binary knows how to drive.
helm versionExpected result:
version.BuildInfo{Version:"v4.3.2", GitCommit:"8346aaa55e7161f7c547212d0a87f01367976727", GitTreeState:"clean", GoVersion:"go1.27.4", KubeClientVersion:"v1.37"}For a short form, helm version --short prints:
v4.3.2+g8346aaaThe KubeClientVersion field appeared with Helm v4, and it is the one to read first: it announces the version of the Kubernetes client library compiled into your binary, therefore the cluster versions this build knows how to drive. The official compatibility rule is n-3: Helm 4.3 covers Kubernetes 1.37 to 1.34, Helm 4.1 stops at 1.35. A Helm that is too old for your cluster does not refuse to start, it simply behaves unpredictably on recent APIs.
If the command prints a v3.x, it is not an error: it is a different branch, still installed on many workstations and perfectly functional. It simply received its last feature release on September 9, 2026, and its security fixes stop on February 10, 2027.
The everyday lessons of this course were replayed on Helm v4.3.2; the others were not all replayed. Following them with a v3 remains possible for the most part, but you will run into differences, for example on --atomic, --dry-run and post-renderers: the lesson Migrate to Helm v4 details them all.
How do you deploy a chart in 2 minutes?
Now that Helm is installed, let us deploy a Kubernetes monitoring tool in 4 steps.
-
Add the prometheus-community repository
Charts are not bundled with Helm, you have to add a repo first:
Terminal window helm repo add prometheus-community https://prometheus-community.github.io/helm-chartsExpected result:
"prometheus-community" has been added to your repositorieshelm repo adddoes not merely register the URL: it immediately downloads the repository index, that is, the list of its charts and their versions. On the measured workstation, the file~/.cache/helm/repository/prometheus-community-index.yaml(about 6.8 MB) existed as soon as the command ended, before anyhelm repo update. -
Refresh the chart index
Downloads the index of each declared repository again (like
apt update). The command is not what makes the repository usable, it is what lets you see the versions published since your last download:Terminal window helm repo updateExpected result:
Hang tight while we grab the latest from your chart repositories......Successfully got an update from the "prometheus-community" chart repositoryUpdate Complete. ⎈Happy Helming!⎈If you have already added other repositories, a
Successfully got an updateline appears for each of them. -
Install kube-state-metrics
Create a release named
my-metricsin thehelm-demonamespace. The--version 5.27.0option pins the chart version: without it, Helm takes the latest one, and the output you read here would no longer be yours:Terminal window helm install my-metrics prometheus-community/kube-state-metrics \--version 5.27.0 \--namespace helm-demo \--create-namespaceExpected result:
NAME: my-metricsLAST DEPLOYED: Tue Nov 17 08:07:16 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 1DESCRIPTION: Install completeTEST SUITE: NoneNOTES:kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects.The exposed metrics can be found here:https://github.com/kubernetes/kube-state-metrics/blob/master/docs/README.md#exposed-metricsThe metrics are exported on the HTTP endpoint /metrics on the listening port.In your case, my-metrics-kube-state-metrics.helm-demo.svc.cluster.local:8080/metricsThey are served either as plaintext or protobuf depending on the Accept header.They are designed to be consumed either by Prometheus itself or by a scraper that is compatible with scraping a Prometheus client endpoint.The
LAST DEPLOYEDline carries the date of your run, not this one.Reading the output:
Line Meaning NAME: my-metricsThe name of your release, use it for all future commands ( helm upgrade my-metrics,helm uninstall my-metrics)LAST DEPLOYEDDate and time of the deployment, useful to know "when was this version deployed?" NAMESPACE: helm-demoThe Kubernetes namespace where the resources were created STATUS: deployedThe installation succeeded. Other possible values: failed,pending-installREVISION: 1Version number of the release. Increments with every helm upgrade. Makes rollbacks possibleNOTES:Post-installation instructions, always read this section! It tells you how to reach the application -
Wait for the pods to be ready
Terminal window kubectl get pods -n helm-demo --watchWait until the status switches to
Running(30-60 seconds), then pressCtrl+C.
This chart was chosen to learn, not for its immediate usefulness. kube-state-metrics is light and exposes metrics about the state of the cluster objects. It is open source (Apache 2.0 license) and its chart is published by the Prometheus community, so it is not driven by any vendor. It installs and uninstalls in a few seconds without disturbing anything on a test cluster.
How do you check the deployment?
Helm created several Kubernetes resources. Let us check that everything is in place.
How do you list Helm releases?
helm list is the command you will type the most often: it answers "what is running here, and in which state". Two details matter from day one: it is limited to one namespace, the one of the current context or the one passed with -n, and it reads the Secrets of that namespace, not a Helm server.
helm list -n helm-demoExpected result:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSIONmy-metrics helm-demo 1 2026-11-17 08:07:16.712679263 +0000 UTC deployed kube-state-metrics-5.27.0 2.14.0This command shows:
- NAME: the name of your release
- REVISION: the version number (incremented with every upgrade)
- STATUS:
deployed,failed,pending-install... - CHART: the chart and its version
- APP VERSION: the version of the application (here kube-state-metrics 2.14.0, embedded in version 5.27.0 of the chart)
What does the release contain?
helm status rereads the release and queries the cluster for each of its resources. It answers "what did this release create, and is it running", without you having to know the names of the objects.
helm status my-metrics -n helm-demoExpected result, start of the output (the end repeats the NOTES seen above):
NAME: my-metricsLAST DEPLOYED: Tue Nov 17 08:07:16 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 1DESCRIPTION: Install completeRESOURCES:==> v1/DeploymentNAME READY UP-TO-DATE AVAILABLE AGEmy-metrics-kube-state-metrics 1/1 1 1 11s
==> v1/Pod(related)NAME READY STATUS RESTARTS AGEmy-metrics-kube-state-metrics-6985664cfc-nz4lg 1/1 Running 0 11s
==> v1/ServiceAccountNAME AGEmy-metrics-kube-state-metrics 11s
==> v1/ClusterRoleNAME CREATED ATmy-metrics-kube-state-metrics 2026-11-17T08:07:16Z
==> v1/ClusterRoleBindingNAME ROLE AGEmy-metrics-kube-state-metrics ClusterRole/my-metrics-kube-state-metrics 11s
==> v1/ServiceNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEmy-metrics-kube-state-metrics ClusterIP 10.105.251.170 <none> 8080/TCP 11sThe RESOURCES section has six blocks: a Deployment, its Pods (marked related, because Helm finds them through their labels and did not create them itself), a ServiceAccount, a ClusterRole, a ClusterRoleBinding and a Service. The three permission objects (ServiceAccount, ClusterRole, ClusterRoleBinding) let kube-state-metrics read the state of the cluster.
What are the Kubernetes resources created?
kubectl get all gives the point of view of Kubernetes, without going through Helm. It does not list everything (neither the ServiceAccount nor the ClusterRole appear), but it shows the chain that makes the application run.
kubectl get all -n helm-demoExpected result:
NAME READY STATUS RESTARTS AGEpod/my-metrics-kube-state-metrics-6985664cfc-nz4lg 1/1 Running 0 11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEservice/my-metrics-kube-state-metrics ClusterIP 10.105.251.170 <none> 8080/TCP 11s
NAME READY UP-TO-DATE AVAILABLE AGEdeployment.apps/my-metrics-kube-state-metrics 1/1 1 1 11s
NAME DESIRED CURRENT READY AGEreplicaset.apps/my-metrics-kube-state-metrics-6985664cfc 1 1 1 11sA single helm install therefore created a Deployment, which itself created a ReplicaSet, which created the Pod; the Service gives the Pod a stable address. The Pod and ReplicaSet names carry a random suffix (6985664cfc): yours will be different.
How does Helm work during a helm install?
The diagram reads from top to bottom. The red rectangle is the only place where Helm works, on your workstation: it takes the chart, fetched from the repository, and your values, then renders the manifests. The red arrows follow what goes to the cluster.
Helm creates nothing itself: it sends the manifests to the Kubernetes API, which creates the Deployment, the Service and the rest, as kubectl get all has just shown. It also records the release in Secrets of the namespace, one Secret per revision (sh.helm.release.v1.my-metrics.v1, then .v2 after an update). These are the Secrets that helm list and helm history reread, and they are what makes going back possible. Helm therefore needs no component installed in the cluster.
How do you test access to the metrics?
A Running Pod does not prove that the application answers. You therefore open a tunnel to the Service with kubectl port-forward, then query the metrics address with curl.
# Port-forward to reach it locallykubectl port-forward svc/my-metrics-kube-state-metrics 8080:8080 -n helm-demo &
# Wait 2 seconds for the port-forward to be establishedsleep 2
# Test (prints the Prometheus metrics)curl -s http://localhost:8080/metrics | head -10Expected result:
# HELP kube_certificatesigningrequest_annotations Kubernetes annotations converted to Prometheus labels.# TYPE kube_certificatesigningrequest_annotations gauge# HELP kube_certificatesigningrequest_labels [STABLE] Kubernetes labels converted to Prometheus labels.# TYPE kube_certificatesigningrequest_labels gauge# HELP kube_certificatesigningrequest_created [STABLE] Unix creation timestamp# TYPE kube_certificatesigningrequest_created gaugekube_certificatesigningrequest_created{certificatesigningrequest="csr-8n4b4",signer_name="kubernetes.io/kube-apiserver-client-kubelet"} 1.794899873e+09# HELP kube_certificatesigningrequest_condition [STABLE] The number of each certificatesigningrequest condition# TYPE kube_certificatesigningrequest_condition gaugekube_certificatesigningrequest_condition{certificatesigningrequest="csr-8n4b4",signer_name="kubernetes.io/kube-apiserver-client-kubelet",condition="approved"} 1The first ten lines depend on your cluster: the name of the certificate request (csr-8n4b4) and its timestamp will not be yours. What must be found on your side are the # HELP and # TYPE lines and the kube_* metrics.
This output is the proof that the deployment really works. Lines starting with # HELP and # TYPE, followed by metrics in the kube_* format, mean that the application really exposes its Prometheus metrics, and not merely that it listens on a port. The difference matters: a pod in Running with an open port may well be serving errors, and kubectl get pods will never say anything about it.
# Stop the background port-forwardpkill -f "port-forward.*8080"How do you update the release and read its history?
A release is modified with helm upgrade. Each call creates a new revision, and the old one stays in the history: this is what makes going back possible. Here, we ask for two replicas, keeping the same chart version:
helm upgrade my-metrics prometheus-community/kube-state-metrics \ --version 5.27.0 \ --namespace helm-demo \ --set replicas=2Expected result, start of the output:
Release "my-metrics" has been upgraded. Happy Helming!NAME: my-metricsLAST DEPLOYED: Tue Nov 17 08:07:31 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 2DESCRIPTION: Upgrade completeTEST SUITE: NoneThe REVISION: 2 line confirms that a second revision exists. helm history lists them all, with their status:
helm history my-metrics -n helm-demoExpected result:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Tue Nov 17 08:07:16 2026 superseded kube-state-metrics-5.27.0 2.14.0 Install complete2 Tue Nov 17 08:07:31 2026 deployed kube-state-metrics-5.27.0 2.14.0 Upgrade completeRevision 1 became superseded (replaced) and only revision 2 is deployed. The lesson Lifecycle details helm upgrade and helm rollback.
How do you uninstall cleanly?
When you no longer need the release:
helm uninstall my-metrics -n helm-demoExpected result:
release "my-metrics" uninstalledHow do you check the cleanup?
After the uninstall, the namespace must contain no Deployment, Pod or Service of the release.
kubectl get all -n helm-demoExpected result:
No resources found in helm-demo namespace.Helm deleted the ordinary resources of the release that kubectl get all displayed (Deployment, ReplicaSet, Service, Pod). This command lists neither the ServiceAccounts, nor the Secrets, nor the objects without a namespace: it therefore proves the cleanup only for what it shows. The namespace remains, because Helm did not delete it; you can remove it yourself:
kubectl delete namespace helm-demoWhat are the common mistakes?
These are the usual blockers of a first deployment. They come from the environment, not from the content of the chart: a release name already taken, a repository not added, a cluster unreachable or short on resources, an image that cannot be pulled. Recognizing them from the message avoids looking where there is nothing to find.
| Symptom | Cause | Solution |
|---|---|---|
Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in use | A release with this name already exists in this namespace | Choose another name, another namespace, or helm uninstall first |
Error: INSTALLATION FAILED: chart "kube-state-metrics-faute" matching 5.27.0 not found in prometheus-community index. (try 'helm repo update'): no chart name found | Wrong chart name, or repository not added or not up to date | Check the name with helm search repo kube-state-metrics, then helm repo add prometheus-community https://prometheus-community.github.io/helm-charts and helm repo update |
... not found in prometheus-community index. (try 'helm repo update'): no chart version found for kube-state-metrics-99.0.0 | The chart exists, but not this version | List the versions with helm search repo kube-state-metrics --versions |
Error: Kubernetes cluster unreachable | kubectl not configured | Check kubectl cluster-info |
Pods in Pending | Not enough resources on the cluster | Check kubectl describe pod for details |
Pods in ImagePullBackOff | Image not found or private registry | Check the image name and the credentials |
What does Helm answer when the release name is already taken?
Rerunning the install command with the same name, in the same namespace, fails. Helm 4.3.2 first writes a log line, then the error message:
level=ERROR msg="release name check failed" error="cannot reuse a name that is still in use"Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in useThe release name is unique per namespace, not for the whole cluster. The same command with -n other-ns --create-namespace succeeds and creates a second release of the same name: helm list -A then shows two lines, one per namespace. This measurement was made with a release named demo, other than the my-metrics of this lesson; only the name changes. To update an existing release instead of installing it, use helm upgrade --install.
What does helm repo add answer when the URL or the repository is wrong?
Since helm repo add downloads the index, it fails if the URL is wrong. The two measured messages read as follows: no such host means the domain name does not exist, 404 Not Found that the server answers but hosts no repository at that address.
Error: looks like "https://exemple.invalid/charts" is not a valid chart repository or cannot be reached: Get "https://exemple.invalid/charts/index.yaml": dial tcp: lookup exemple.invalid on 127.0.0.53:53: no such hostError: looks like "https://stefanprodan.github.io/pas-un-depot" is not a valid chart repository or cannot be reached: failed to fetch https://stefanprodan.github.io/pas-un-depot/index.yaml : 404 Not FoundAdding the same repository twice with the same URL is not an error. For a repository named podinfo (the measured case, which this lesson does not otherwise use), Helm answers "podinfo" already exists with the same configuration, skipping and the exit code is 0.
Lab A1, Deploy Alertmanager
Put what you have just learned into practice with another chart from the Prometheus community.
-
Create a dedicated namespace
Terminal window kubectl create namespace helm-lab -
Add the prometheus-community repo (if not already done)
Terminal window helm repo add prometheus-community https://prometheus-community.github.io/helm-chartshelm repo update -
Install Alertmanager in the namespace
Terminal window helm install my-alertmanager prometheus-community/alertmanager \--version 2.5.1 \--namespace helm-lab \--set persistence.enabled=falseVersion 2.5.1 of the chart embeds Alertmanager v0.35.0. The
persistence.enabled=falseparameter keeps the chart from asking for a persistent volume, which the lab cluster may not provide.Expected result, start of the output:
NAME: my-alertmanagerLAST DEPLOYED: Tue Nov 17 08:07:38 2026NAMESPACE: helm-labSTATUS: deployedREVISION: 1DESCRIPTION: Install completeTEST SUITE: None -
Check that the pod is Running
Terminal window # Wait for the pod to be ready (2-minute timeout)kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=alertmanager \-n helm-lab --timeout=120s# Check the Pod createdkubectl get pods -n helm-labExpected result:
NAME READY STATUS RESTARTS AGEmy-alertmanager-0 2/2 Running 0 9sThe Pod has two containers (
2/2): Alertmanager and an auxiliary container added by the chart. Both must be ready. -
Functional validation, test the health endpoint
Terminal window # Port-forward to Alertmanagerkubectl port-forward svc/my-alertmanager 9093:9093 -n helm-lab &sleep 2# Test the health endpointcurl -s http://localhost:9093/-/healthyThe Service exposes port 9093, not 80. The command suggested in the chart
NOTES(port-forward $POD_NAME 9093:80) does open a tunnel, butcurlreceives nothing ("Empty reply", code 52): the tunnel targets a port on which Alertmanager does not listen.Expected result:
OKIf you see
OK, Alertmanager is operational! -
Uninstall and clean up
Terminal window # Stop the port-forwardpkill -f "port-forward.*9093"# Uninstall the releasehelm uninstall my-alertmanager -n helm-lab# Delete the namespacekubectl delete namespace helm-lab
Success criteria:
- The
helm-labnamespace contains an Alertmanager pod inRunning -
helm list -n helm-labshows the releasemy-alertmanagerwith statusdeployed -
curl http://localhost:9093/-/healthyreturnsOK(functional validation) - After
helm uninstall, no application resource remains -
kubectl get secrets -n helm-lab -l owner=helm, run before the uninstall, lists the Secretsh.helm.release.v1.my-alertmanager.v1: this is the revision record that Helm adds to what akubectl applycreates
Key takeaways
- Helm is a package manager for Kubernetes: one chart = one reusable package
- Chart + values + version = release: a release is a named instance of a chart, with its values and a revision number
- Basic workflow:
helm repo add→helm repo update→helm install→helm list→helm uninstall helm upgradeadds a revision to the release andhelm historylists them all: this is what makes going back possible- Helm (v3 as well as v4) is client-only: no component to install on the cluster side
- The prometheus-community repo serves as the example throughout the lesson; the lesson Find and inspect charts (in French) shows how to pick one and search it for a chart
Knowledge check
Five questions, drawn at random from the lesson bank, cover the points that matter: what helm version tells you about compatibility, the section of the output that explains how to reach the application, the message Helm v4 returns when a release name is already taken, or the namespace that helm list queries.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
A new full quiz with random questions
Work again only on the questions you missed