Install Helm Client - caprivm/virtualization GitHub Wiki
caprivm ([email protected])
This page shows how to install some Kubernetes cluster management tools such as helm
. Please consider that this tool are operational on an already Kubernetes cluster. You can install it using kubespray as suggested by this link. The installation tests were done on a server with the following characteristics:
Feature | Value |
---|---|
OS Used | Ubuntu 18.04 LTS |
vCPU | 2 |
RAM (GB) | 4 |
Disk (GB) | 50 |
Home user | ubuntu |
The contents of the page are:
Install Helm v3/v2 in your server following the next steps:
curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm # helm2 for Helm v2
For installing the Helm v2 version, replace the last command with:
sudo apt-get install helm2
Add a Helm repository for testing the correct installation. In this case, add bitnami:
helm repo add bitnami https://charts.bitnami.com/bitnami
# "bitnami" has been added to your repositories
List the repositories availables:
helm repo list
# NAME URL
# bitnami https://charts.bitnami.com/bitnami
Init the tiller-deploy
agent in the cluster using:
helm init
If after this there is still an error with commands like helm init
or helm list -A
, or they are not available, enable them via:
kubectl -n kube-system create serviceaccount tiller
kubectl -n kube-system create clusterrolebinding tiller-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl -n kube-system patch deploy tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
# Run again
helm init
List the repositories availables:
helm repo list
# NAME URL
# bitnami https://charts.bitnami.com/bitnami