Introduction to Helm
How to Install Helm
In this step, we are going to install Helm on the workspace server we created in the previous chapter.
There are different ways to install Helm, depending on your operating system and preferences. The most common methods are:
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 version 4.0.0 on Linux, 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 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
Helm in Practice
Designing, Deploying, and Operating Kubernetes Applications at ScaleEnroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
