Deploying applications to Kubernetes is a complicated process. Many tools simplify this process, and one of them is Helm.
Helm is a package manager for Kubernetes that configures and deploys applications and services on a Kubernetes cluster. It uses Helm charts to simplify the development and deployment process.
In this step-by-step tutorial, you will learn how to install Helm on Linux
Helm supports installations on Linux. Before installing Helm on any operating system, it is necessary to set up a Kubernetes cluster.
This guide shows how to install the Helm CLI. Helm can be installed either from source, or from pre-built binary releases.
Installing Helm on Ubuntu/Debian/CentOS/RHEL/Fedora
1. Download the latest version of Helm using the following command:
The terminal prints out a confirmation message when the download completes.
Note: Go to this link below to get updates about the latest version of helm and copy the link address then download it with wget command such as in the previous command.
2. Next, unpack the Helm file using the tar command:
tar xvf helm-v3.6.0-linux-amd64.tar.gz
The output displays four unpacked files.
3. Move the linux-amd64/helm file to /usr/local/bin directory:
sudo mv linux-amd64/helm /usr/local/bin
There will be no output if the command was executed correctly.
4. Remove the downloaded file using the command:
5. Remove the linux-amd64 directory to clean up space by running:
rm -rf linux-amd64
6. Finally, verify you have successfully installed Helm by checking the version of the software:
The terminal prints out the version number of the software, as well as the release numbers of GitCommit, GitTreeState, and GoVersion.
Also you can follow this steps in CentOS as shown :
We just downloaded Helm from the Helm project which includes :
- Binary Releases which we already used it to install our Helm
Also you can install Helm Through Package Managers which includes:
- Apt for (Debian/Ubuntu)
- pkg for (FreeBSD)
- From Source
- Canary Builds
Install Helm with the Script from Helm Project
Helm now has an installer script that will automatically grab the latest version of Helm and install it locally.
You can fetch that script, and then execute it locally. It’s well documented so that you can read through it and understand what it is doing before you run it.
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
$ chmod 700 get_helm.sh
Install Helm through Package Managers
The Helm community provides the ability to install Helm through operating system package managers. These are not supported by the Helm project and are not considered trusted 3rd parties.
1. Apt for (Debian/Ubuntu)
Members of the Helm community have contributed a Helm package for Apt. This package is generally up to date.
$ curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
$ sudo apt-get install apt-transport-https --yes
$ echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
$ sudo apt-get update
$ sudo apt-get install helm
sudo snap install helm --classic
3. pkg for (FreeBSD)
pkg install helm
Building Helm from source is slightly more work, but is the best way to go if you want to test the latest (pre-release) Helm version.
You must have a working Go environment.
$ git clone https://github.com/helm/helm.git
$ cd helm
5. Canary Builds
“Canary” builds are versions of the Helm software that are built from the latest master branch. They are not official releases, and may not be stable. However, they offer the opportunity to test the cutting edge features.
In most cases, installation is as simple as getting a pre-built helm binary. This document covers additional cases for those who want to do more sophisticated things with Helm.