Everything You Need to Know to Start Using Helm
How to Install Helm
There are different ways to install Helm, depending on your operating system and preferences. However, the common approach is to install Helm on your local machine and then use it to manage applications on your Kubernetes clusters.
Here are the most common methods to install Helm:
Using a binary release:
Helm is an open source project hosted on GitHub. You can download the latest binary release for your operating system from the Helm GitHub releases page
To install the version 4.0.0 on Linux, you should go to the releases page, choose the appropriate tarball file, and run a series of commands like these:
# SSH into the workspace server
ssh root@$WORKSPACE_PRIVATE_IP
# Export the URL for the Helm binary
url=https://get.helm.sh/helm-v4.0.0-linux-amd64.tar.gz
# Download the Helm binary
curl -LO $url
# Extract the tarball
tar -zxvf helm-v4.0.0-linux-amd64.tar.gz
# Move the Helm binary to a directory in your PATH
mv linux-amd64/helm /usr/local/bin/helm
# Verify the installation
helm version
# Remove the downloaded files
rm helm-v4.0.0-linux-amd64.tar.gz
rm -rf linux-amd64
Run the above commands to install Helm on the workspace server. After the installation, you can verify that Helm is installed correctly by running helm version, which should display the version of Helm you just installed.
Alternative Installation Methods
Using a script:
Helm provides an installation script that automates the download and installation process. You can download and run the script with the following commands:
# Export the URL for the Helm installation script
url=https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4
# Download the Helm installation script
curl -fsSL $url -o get_helm.sh
# Run the Helm installation script
bash get_helm.sh --version v4.0.0
# Remove the installation script
rm get_helm.sh
Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
