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 call 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?

1. Create this script /tmp/helm.sh:

version=2.7.2

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 *