Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Last active February 4, 2023 07:22
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save random-robbie/4b5c056d58946bc94f70de423adbe25d to your computer and use it in GitHub Desktop.
Save random-robbie/4b5c056d58946bc94f70de423adbe25d to your computer and use it in GitHub Desktop.
Install helm for kubernetes on centos 7
#!/bin/bash
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-linux-amd64.tar.gz
tar -zxvf helm-v2.12.2-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl create namespace kubeapps
helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
@aleksanderzajac
Copy link

please remove "cd" from "cd mv linux-amd64/helm /usr/local/bin/helm"

@random-robbie
Copy link
Author

done :)

@ncostis
Copy link

ncostis commented Sep 13, 2019

last command does not work
Error: failed to download "bitnami/kubeapps" (hint: running helm repo update may help)

I tried repo update but i got the same error. Any suggestions?

@ncostis
Copy link

ncostis commented Sep 13, 2019

SOLVED
adding the chart
helm repo add bitnami https://charts.bitnami.com/bitnami

@moosecanswim
Copy link

moosecanswim commented Oct 23, 2019

for 2.15 you just need to change the version number everything else is the same:

#!/bin/bash
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.15.1-linux-amd64.tar.gz
tar -zxvf helm-v2.15.1-linux-amd64.tar.gz

@inyee786
Copy link

inyee786 commented Nov 5, 2019

if you move the helm binary to /usr/bin that will be great

@rohith-mr-rao
Copy link

If you get the error 'bash: helm: command not found'
Export the path as below:
export PATH=$PATH:/usr/local/bin/

@rohith-mr-rao
Copy link

rohith-mr-rao commented Nov 8, 2019

#helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
Error: failed to download "bitnami/kubeapps" (hint: running helm repo update may help)

Please add the bitnami repo in helm as below. It'll resolve the above error.

#helm repo add bitnami https://charts.bitnami.com/bitnami

"bitnami" has been added to your repositories.

@JoseRobertoR
Copy link

JoseRobertoR commented Mar 31, 2020

Also you need to change the api version:
apiVersion: extensions/v1beta1

When you need to set this:
apiVersion: apps/v1

Maybe it is regarding to the current Kubernetes version that I'm using.

@ashish1982gwl
Copy link

export PATH=$PATH:/usr/local/bin/

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment