-
-
Save random-robbie/4b5c056d58946bc94f70de423adbe25d to your computer and use it in GitHub Desktop.
#!/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 |
done :)
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?
SOLVED
adding the chart
helm repo add bitnami https://charts.bitnami.com/bitnami
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
if you move the helm binary to /usr/bin
that will be great
If you get the error 'bash: helm: command not found'
Export the path as below:
export PATH=$PATH:/usr/local/bin/
#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.
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.
export PATH=$PATH:/usr/local/bin/
thanks
please remove "cd" from "cd mv linux-amd64/helm /usr/local/bin/helm"