Home >Computer Tutorials >Computer Knowledge >Install Helm on Ubuntu
Helm is an important component of Kubernetes that simplifies the deployment of Kubernetes applications by bundling configuration files into a package called a Helm Chart. This approach makes updating a single configuration file more convenient than modifying multiple files. With Helm, users can easily deploy Kubernetes applications, simplifying the entire deployment process and improving efficiency.
In this guide, I will introduce different ways to implement Helm on Ubuntu.
Please note: The commands in the following guide apply to Ubuntu 22.04 and all Ubuntu versions and Debian-based distributions. These commands are tested and should work correctly on your system.
Helm provides several Linux installation methods that can be used to install it on Ubuntu.
On Ubuntu, you can quickly start and run Helm through the snap package manager. To download and install the Helm package, enter the following commands in the terminal.
sudo snap install helm——Classic
Snap packages are containerized and usually larger than Deb. If you want to remove it from Ubuntu then use Snap Remove command.
sudo snap removehelmet
The first method is to download the tar file from the official website.
Download the Linux version from here.
Use the cd command to go to the directory where you downloaded the file; in my case, it was downloaded under the Downloads directory.
Use the Linux tar command to decompress the file.
Sudo tar-zxf
In the above command, z flag is used to decompress GZ files, x is used to decompress archive files, and f is used to read/write the mentioned files. In my case, the filename is helm-v3.14.0-linux-arm64.tar.gz.
sudo tar—zxf helm—v3.14.0—linux—arm64.tar.gz
After unzipping the archive file, a directory named linux-arm64 will be created in the current working directory. Depending on the file name, the directory name may change.
Use the cd command to navigate to this directory.
cd linux—arm64
In this directory, you will get three files, helm, LICENSE and README.md.
Use sudo and mv (move) commands to move the helm binary file to the /usr/local/bin directory.
Sudo mv helm/usr/local/bin/
that's all! The installation of Helm on Ubuntu has been completed, please use the helm version command to verify the installation.
Rudder type
The output indicates that Helm is installed on Linux.
To uninstall helm from Ubuntu, simply delete helm from the /usr/local/bin/ directory.
Sudo rm/usr/local/bin/helm
The second way to download and install Helm to Ubuntu is to use a script. To download the latest script for Helm, execute the following command.
Curl-fsSL-o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
The above command retrieves the latest Helm script and downloads it to the current working directory named get_helm.sh.
To make the script executable, use the chmod command to grant it the required permissions.
sudo chmod 700 get_helm.sh
Execute this script to start the installation process.
./get_helm.sh
Helm will be downloaded and installed in the /usr/local/bin/ directory. Verify by checking its version.
To uninstall it, use the same method mentioned at the end of method 2 (using the binary version).
To install the Helm package to Ubuntu using APT, first, we need to add its repository; see the steps below.
First download and install the public key.
Curl keyring|gpg–dearmor|sudo tee/usr/Share/https://baltocdn.com/helm/signing.asc/helm.gpg>/dev/empty
Here, cURL https://baltocdn.com/helm/signing.asc is downloading the public ASCII armor key, and gpg-dearmor is converting it to binary.
tee/usr/share/keyrings/helm.gpg is writing the converted binary to the helm.gpg file.
You will not see any output as all standard output will be sent to /dev/empty.
Add the repository by executing the below mentioned command.
ECHO "deb[Arch=$(dpkg–print-Architecture)Signed-By=/usr/Share/Keyring/helm.gpg]https://baltocdn.com/helm/stable/debian/ALL Main" | sudo tee/etc/apt/sources.list.d/helm-stable-debian.list
Here, the echoed parameters containing repository information are written to the Sourcees.list.d/helm-stable-debian.list file.
Now, to access the repository via the secure HTTPS protocol, install the apt_transport_https package, although this is an optional step.
It should be noted that the apt-transport-https package has been built in APT since version 1.5 and is available in the latest Ubuntu versions.
sudo apt install apt—transport—https—yes
Now, update the repository list and install Helm using apt.
sudo apt install helm
To verify, use the helm version command. But if it shows an error, please restart the system.
To uninstall it, use the following command.
SUDO APT REMOVE – Automatically remove the servo
In order to improve the efficiency of Kubernetes package deployment, the Helm tool is used. There are multiple ways to install Helm on Ubuntu, such as through Snap, APT, scripts and official binaries. In this tutorial, all these methods will be discussed. I prefer using Snap to install Helm because it only takes one command to complete. However, this also depends on the system requirements. Also listed are Helm's uninstall methods and their respective installation methods.
The above is the detailed content of Install Helm on Ubuntu. For more information, please follow other related articles on the PHP Chinese website!