Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Helm on Ubuntu

Four ways to install the Kubernetes package manager, and how to use it for your first release.

VPS and Cloud Servers2 min read24 screenshots
Helm on Ubuntu

What Helm is

Helm is the package manager for Kubernetes. It installs applications from packages called charts and keeps track of each install as a release.

Method 1: The official Helm APT repository

Step 1: Update the system

sudo apt update
Updating the system

Step 2: Add the Helm GPG key

The apt-key command is deprecated. Use a keyring:

curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
Adding the Helm GPG key

Step 3: Add the repository

sudo apt install apt-transport-https --yes
Installing apt-transport-https
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
Adding the Helm repository

Step 4: Update and install

sudo apt update
Updating the package list
sudo apt install helm
Installing Helm
helm version
The Helm version

Method 2: Snap

sudo snap install helm --classic
Installing Helm with Snap

Method 3: The install script

curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Running the install script
helm
The Helm help screen

Read a script before you pipe it to a shell.

Method 4: Manual install of the binary

Step 1: Download it

wget https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz
Downloading the binary

Step 2: Extract it

tar -zxvf helm-v3.14.0-linux-amd64.tar.gz
Extracting the archive

Step 3: Move it to a system folder

sudo mv linux-amd64/helm /usr/local/bin/helm
Moving the binary
which helm
Checking the Helm path

Get started with Helm

You need a Kubernetes cluster and kubectl set up.

Add a chart repository

helm repo add bitnami https://charts.bitnami.com/bitnami
Adding the Bitnami repository
helm repo update
Updating the chart list

Install an app (NGINX)

helm install my-nginx bitnami/nginx
Installing NGINX with Helm

In its own namespace:

helm install my-nginx bitnami/nginx --namespace web --create-namespace
Installing NGINX in a namespace

List releases

helm list
The list of Helm releases

Remove a release

helm uninstall my-nginx
Uninstalling a release

Uninstall Helm

sudo apt remove helm
Removing Helm with apt
sudo snap remove helm
Removing Helm with Snap
sudo rm /usr/local/bin/helm
Removing the binary

Quick recap

  • Install from the Helm APT repository, with Snap, a script or the binary.
  • helm repo add, helm install, helm list, helm uninstall.
  • Check with helm version.