How Do You Install Helm on Any Type of Linux?

Problem scenario
You want to use Helm to manage Kubernetes applications. Helm helps you with packages for changes to Kubernetes (in ways that are similar to yum or apt). Helm uses what are called Charts (.yaml files) that enable you to do more with Kubernetes with less trouble. Helm consists of these two things: a CLI tool and a server component that runs as a pod in a Kubernetes cluster (page 531 of Kubernetes in Action by Luksa).

You want to install Helm. You want a script that will work on any type of Linux. You have access to the internet. What should you do?

Solution
Run these commands:

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

(The above commands were taken from this website.)

The script below no longer works as of January 2022.
1. Create this script /tmp/helm.sh:

version=2.9.1

curl -Lk https://kubernetes-helm.storage.googleapis.com/helm-v$version-linux-amd64.tar.gz > /tmp/helm-v$version-linux-amd64.tar.gz

mv -i /tmp/helm-v$version-linux-amd64.tar.gz /bin/
cd /bin/
tar -zxvf helm-v$version-linux-amd64.tar.gz
cp linux-amd64/helm /usr/local/bin/helm

2. Run it like this: sudo bash /tmp/helm.sh

If you are using Debian/Ubuntu Linux without internet access, you can try this posting.

Leave a comment

Your email address will not be published. Required fields are marked *