---
title: Kubernetes package management with Helm
description: This tutorial covers the fundamentals of using Helm, a powerful package manager for Kubernetes, to simplify application deployment, management, and configuration.
products:
  - kubernetes
tags: kubernetes helm k8s
dates:
  validation: 2026-11-04
  posted: 2024-05-23
  validation_frequency: 12
difficulty: beginner
usecase:
  - best-practices
ecosystem:
  - third-party
---

Helm is a package manager for Kubernetes that simplifies the deployment, management, and configuration of applications running on Kubernetes clusters, significantly enhancing the native capabilities of Kubernetes.

It organizes application resources into a single deployable unit called a _Helm chart_, which can be versioned, shared, and reused. Helm charts can simplify the setup of common applications, such as databases, web servers, and monitoring tools, by providing a repository of well-maintained and tested configurations.

![A high-level diagram showing the Helm workflow. Two inputs — a Helm chart containing Kubernetes resource templates, and a values.yaml file containing configuration values — are passed to the Helm engine. Helm renders the templates with the provided values and creates or updates the corresponding resources in a target Kubernetes cluster.](/en/docs/assets/tutorials/kubernetes-package-management-helm/assets/scaleway-helm-schema.webp)

Helm provides a lot of advantages to Kubernetes infrastructures, such as:

* **Simplified application deployment**: Helm allows you to deploy applications using pre-configured charts, reducing the complexity of manually writing Kubernetes manifests.
* **Version control**: Helm tracks versions of your deployments, making it easy to roll back to previous versions if needed.
* **Reusability**: Helm charts can be reused across different environments and clusters, promoting consistency and saving time.
* **Dependency management**: Helm handles the dependencies between different Kubernetes resources, ensuring that they are deployed in the correct order.
* **Customizability**: You can override default values in Helm charts to tailor the deployment to your specific requirements using `values.yaml` files.

However, it also comes with its own set of disadvantages, which include:

* **Learning curve**: For beginners, there might be a learning curve to understand the Helm templating system and chart structure.
* **Chart maintenance**: Maintaining and updating Helm charts requires ongoing effort, especially for complex applications.
* **Overhead**: Using Helm adds another layer of abstraction and tooling, which may introduce some overhead in terms of management and resource utilization.

For a complete overview of Helm and its basic concepts, see the [What the hell is Helm? A beginner's guide](https://www.scaleway.com/en/blog/helm-guide/) Scaleway blog post.

## Before you start

To complete the following actions, you must have:

* A Scaleway account logged in to the [console](https://console.scaleway.com)
* [Owner](/en/docs/iam/concepts/glossary/#owner) status or [IAM permissions](/en/docs/iam/concepts/glossary/#permission) allowing you to perform actions in the intended Organization
* [Created a Kapsule cluster](/en/docs/kubernetes/how-to/create-cluster/)
* Set up [kubectl](/en/docs/kubernetes/how-to/connect-cluster-kubectl/) on your machine

## Install Helm

> **Tip**
>
> Before installing Helm, ensure that `kubectl` is installed and configured on your system. You can verify this by running:
>
> ```
> kubectl cluster-info
> ```
>
> You will see cluster information if you have a cluster deployed and `kubectl` is installed and configured correctly. If not, [deploy a Kubernetes Kapsule cluster](/en/docs/kubernetes/how-to/create-cluster/) and [install `kubectl`](https://kubernetes.io/docs/tasks/tools/#kubectl) first.

### Install the Helm client

1. Download the latest Helm release for your operating system from the [Helm releases page](https://github.com/helm/helm/releases).

2. Install Helm by following the [installation instructions for your OS](https://helm.sh/docs/intro/install/).

   For macOS:

   ```
   brew install helm
   ```

   For Linux:

   ```
   curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4
   chmod 700 get_helm.sh
   ./get_helm.sh
   ```

   For Windows:

   Download the Windows installer from the releases page and run the installer.

3. Verify the Helm installation by running the following command:

   ```
   helm version
   ```

   This should display the version of Helm installed.

## Use Helm

### Add repositories

**Helm repositories** are cloud storage locations where Helm charts are stored and distributed. They are collections of packaged charts that can be shared and retrieved using simple commands. Repositories are added to the Helm client, allowing you to search, install, and update charts.

To add a repository, use the `helm repo add` command:

```
helm repo add <repo-name> <repo-url>
```

For example, to add the External Secrets repository:

```
helm repo add external-secrets https://charts.external-secrets.io
```

### Install Helm charts

Helm charts are packages of pre-configured Kubernetes resources. Each chart contains a set of YAML templates defining the Kubernetes objects required for a particular application or service and default configuration values. Charts enable reusable and repeatable deployments across different environments.

To install a chart, use the `helm install` command:

```
helm install <release-name> <chart-name>
```

For example, to install the `external-secrets` chart:

```
helm install external-secrets external-secrets/external-secrets --namespace external-secrets --create-namespace
```

Where:

* `helm install`

  Tells Helm to install a new package release onto your Kubernetes cluster.

* `external-secrets`

  Sets the release name within the cluster.

* `external-secrets/external-secrets`

  Specifies the chart to install, formatted as `<repo-name>/<chart-name>`.

* `--namespace external-secrets`

  Specifies that the Helm release and its core components should be deployed into the `external-secrets` namespace.

* `--create-namespace`

  Automatically creates the `external-secrets` namespace if it does not already exist.

### Search for Helm charts

Helm allows you to search for charts in the repositories you have added. Use the `helm search` command to find charts:

```
helm search repo <keyword>
```

For example, to search for all External Secrets-related charts:

```
helm search repo external-secrets
```

> **Tip**
>
> The Cloud Native Computing Foundation operates [Artifact Hub](https://artifacthub.io/), a web-based application that enables finding, installing, and publishing Cloud Native packages and configurations. It allows you to search for Helm charts and more using a web browser.

### Create Helm charts from templates

Creating Helm charts is simple if you follow the template structure. Here is a brief overview of how to create a simple chart:

1. Create a new Helm chart:

   ```
   helm create <chart-name>
   ```

   This command generates a boilerplate chart directory structure.

2. Customize your templates: The generated chart directory includes several files and directories:

   * `Chart.yaml`: Metadata about the chart.
   * `values.yaml`: Default values for the variables of the chart.
   * `templates/`: Directory containing Kubernetes manifest templates.

   Modify these files to fit the needs of your application.

3. After customizing, package your chart using:

   ```
   helm package <chart-name>
   ```

4. Install your custom chart using the `helm install` command:

   ```
   helm install <release-name> <path-to-chart>
   ```

## Helm ecosystem and community

Refer to the [official Helm website](https://helm.sh/) and the [Helm GitHub repository](https://github.com/helm/helm) for more information about Helm, including advanced usage, plugins, and community support. The community is active, and many resources are available for learning and troubleshooting.

After completing this tutorial, you now know the basics of using Helm to manage your Kubernetes applications. See the official [Helm documentation](https://helm.sh/docs/) to learn more.
