Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Helm in 15 minutes: install it and deploy your first chart

28 min read
Improve this page

Logo Helm

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 with helm install
  • Check that everything works with helm list, helm status and kubectl
  • Update a release with helm upgrade and 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 HelmWith Helm
10 YAML files to maintain1 versioned chart
"Which version is in prod?" → grep the logshelm list → version, date, status
Rollback = find the old fileshelm rollback myapp 2
Dev/prod config = duplicate all the YAML1 chart + values-dev.yaml / values-prod.yaml
Update = edit every filehelm 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.yaml file with the default values
  • A Chart.yaml file 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:

Terminal window
helm install metrics-prod prometheus-community/kube-state-metrics --version 5.27.0 -f values-prod.yaml
helm install metrics-dev prometheus-community/kube-state-metrics --version 5.27.0 -f values-dev.yaml

Repository (repo)

A repository is a server that hosts charts. It is like an "app store" for Helm. The best known:

RepoURLContent
prometheus-communityhttps://prometheus-community.github.io/helm-chartsMonitoring charts (Prometheus, Grafana, exporters)
ingress-nginxhttps://kubernetes.github.io/ingress-nginxCommunity 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:

Terminal window
# Use the default values
helm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0
# Override one value
helm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 --set replicas=3
# Override through a file
helm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 -f my-values.yaml

How 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.

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.

Terminal window
helm version

Expected 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+g8346aaa

The 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.

  1. 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-charts

    Expected result:

    "prometheus-community" has been added to your repositories

    helm repo add does 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 any helm repo update.

  2. 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 update

    Expected result:

    Hang tight while we grab the latest from your chart repositories...
    ...Successfully got an update from the "prometheus-community" chart repository
    Update Complete. ⎈Happy Helming!⎈

    If you have already added other repositories, a Successfully got an update line appears for each of them.

  3. Install kube-state-metrics

    Create a release named my-metrics in the helm-demo namespace. The --version 5.27.0 option 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-namespace

    Expected result:

    NAME: my-metrics
    LAST DEPLOYED: Tue Nov 17 08:07:16 2026
    NAMESPACE: helm-demo
    STATUS: deployed
    REVISION: 1
    DESCRIPTION: Install complete
    TEST SUITE: None
    NOTES:
    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-metrics
    The 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/metrics
    They 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 DEPLOYED line carries the date of your run, not this one.

    Reading the output:

    LineMeaning
    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-install
    REVISION: 1Version number of the release. Increments with every helm upgrade. Makes rollbacks possible
    NOTES:Post-installation instructions, always read this section! It tells you how to reach the application
  4. Wait for the pods to be ready

    Terminal window
    kubectl get pods -n helm-demo --watch

    Wait until the status switches to Running (30-60 seconds), then press Ctrl+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.

Terminal window
helm list -n helm-demo

Expected result:

NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
my-metrics helm-demo 1 2026-11-17 08:07:16.712679263 +0000 UTC deployed kube-state-metrics-5.27.0 2.14.0

This 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.

Terminal window
helm status my-metrics -n helm-demo

Expected result, start of the output (the end repeats the NOTES seen above):

NAME: my-metrics
LAST DEPLOYED: Tue Nov 17 08:07:16 2026
NAMESPACE: helm-demo
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
RESOURCES:
==> v1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
my-metrics-kube-state-metrics 1/1 1 1 11s
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
my-metrics-kube-state-metrics-6985664cfc-nz4lg 1/1 Running 0 11s
==> v1/ServiceAccount
NAME AGE
my-metrics-kube-state-metrics 11s
==> v1/ClusterRole
NAME CREATED AT
my-metrics-kube-state-metrics 2026-11-17T08:07:16Z
==> v1/ClusterRoleBinding
NAME ROLE AGE
my-metrics-kube-state-metrics ClusterRole/my-metrics-kube-state-metrics 11s
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
my-metrics-kube-state-metrics ClusterIP 10.105.251.170 <none> 8080/TCP 11s

The 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.

Terminal window
kubectl get all -n helm-demo

Expected result:

NAME READY STATUS RESTARTS AGE
pod/my-metrics-kube-state-metrics-6985664cfc-nz4lg 1/1 Running 0 11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/my-metrics-kube-state-metrics ClusterIP 10.105.251.170 <none> 8080/TCP 11s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/my-metrics-kube-state-metrics 1/1 1 1 11s
NAME DESIRED CURRENT READY AGE
replicaset.apps/my-metrics-kube-state-metrics-6985664cfc 1 1 1 11s

A 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.

Path of a helm install: the chart from the repository and your values enter helm install, which renders the manifests and sends them to the Kubernetes API. The API creates the resources (Deployment, Service) and records the release in Secrets, one per revision.Chart repositoryCharttemplates + values.yamlYour values-f, --sethelm installrenders the manifestsKubernetes APIResources createdDeployment, Service...Release Secretsone per revision
Source · SVG
Esc to close, + and − to zoom, scroll to move around. 100 %

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.

Terminal window
# Port-forward to reach it locally
kubectl port-forward svc/my-metrics-kube-state-metrics 8080:8080 -n helm-demo &
# Wait 2 seconds for the port-forward to be established
sleep 2
# Test (prints the Prometheus metrics)
curl -s http://localhost:8080/metrics | head -10

Expected 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 gauge
kube_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 gauge
kube_certificatesigningrequest_condition{certificatesigningrequest="csr-8n4b4",signer_name="kubernetes.io/kube-apiserver-client-kubelet",condition="approved"} 1

The 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.

Terminal window
# Stop the background port-forward
pkill -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:

Terminal window
helm upgrade my-metrics prometheus-community/kube-state-metrics \
--version 5.27.0 \
--namespace helm-demo \
--set replicas=2

Expected result, start of the output:

Release "my-metrics" has been upgraded. Happy Helming!
NAME: my-metrics
LAST DEPLOYED: Tue Nov 17 08:07:31 2026
NAMESPACE: helm-demo
STATUS: deployed
REVISION: 2
DESCRIPTION: Upgrade complete
TEST SUITE: None

The REVISION: 2 line confirms that a second revision exists. helm history lists them all, with their status:

Terminal window
helm history my-metrics -n helm-demo

Expected result:

REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Nov 17 08:07:16 2026 superseded kube-state-metrics-5.27.0 2.14.0 Install complete
2 Tue Nov 17 08:07:31 2026 deployed kube-state-metrics-5.27.0 2.14.0 Upgrade complete

Revision 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:

Terminal window
helm uninstall my-metrics -n helm-demo

Expected result:

release "my-metrics" uninstalled

How do you check the cleanup?

After the uninstall, the namespace must contain no Deployment, Pod or Service of the release.

Terminal window
kubectl get all -n helm-demo

Expected 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:

Terminal window
kubectl delete namespace helm-demo

What 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.

SymptomCauseSolution
Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in useA release with this name already exists in this namespaceChoose 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 foundWrong chart name, or repository not added or not up to dateCheck 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.0The chart exists, but not this versionList the versions with helm search repo kube-state-metrics --versions
Error: Kubernetes cluster unreachablekubectl not configuredCheck kubectl cluster-info
Pods in PendingNot enough resources on the clusterCheck kubectl describe pod for details
Pods in ImagePullBackOffImage not found or private registryCheck 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 use

The 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 host
Error: 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 Found

Adding 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.

  1. Create a dedicated namespace

    Terminal window
    kubectl create namespace helm-lab
  2. Add the prometheus-community repo (if not already done)

    Terminal window
    helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
    helm repo update
  3. Install Alertmanager in the namespace

    Terminal window
    helm install my-alertmanager prometheus-community/alertmanager \
    --version 2.5.1 \
    --namespace helm-lab \
    --set persistence.enabled=false

    Version 2.5.1 of the chart embeds Alertmanager v0.35.0. The persistence.enabled=false parameter keeps the chart from asking for a persistent volume, which the lab cluster may not provide.

    Expected result, start of the output:

    NAME: my-alertmanager
    LAST DEPLOYED: Tue Nov 17 08:07:38 2026
    NAMESPACE: helm-lab
    STATUS: deployed
    REVISION: 1
    DESCRIPTION: Install complete
    TEST SUITE: None
  4. 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 created
    kubectl get pods -n helm-lab

    Expected result:

    NAME READY STATUS RESTARTS AGE
    my-alertmanager-0 2/2 Running 0 9s

    The Pod has two containers (2/2): Alertmanager and an auxiliary container added by the chart. Both must be ready.

  5. Functional validation, test the health endpoint

    Terminal window
    # Port-forward to Alertmanager
    kubectl port-forward svc/my-alertmanager 9093:9093 -n helm-lab &
    sleep 2
    # Test the health endpoint
    curl -s http://localhost:9093/-/healthy

    The Service exposes port 9093, not 80. The command suggested in the chart NOTES (port-forward $POD_NAME 9093:80) does open a tunnel, but curl receives nothing ("Empty reply", code 52): the tunnel targets a port on which Alertmanager does not listen.

    Expected result:

    OK

    If you see OK, Alertmanager is operational!

  6. Uninstall and clean up

    Terminal window
    # Stop the port-forward
    pkill -f "port-forward.*9093"
    # Uninstall the release
    helm uninstall my-alertmanager -n helm-lab
    # Delete the namespace
    kubectl delete namespace helm-lab

Success criteria:

  • The helm-lab namespace contains an Alertmanager pod in Running
  • helm list -n helm-lab shows the release my-alertmanager with status deployed
  • curl http://localhost:9093/-/healthy returns OK (functional validation)
  • After helm uninstall, no application resource remains
  • kubectl get secrets -n helm-lab -l owner=helm, run before the uninstall, lists the Secret sh.helm.release.v1.my-alertmanager.v1: this is the revision record that Helm adds to what a kubectl apply creates

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 upgrade adds a revision to the release and helm history lists 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

5 questions
5 min
80% to pass

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