Last active
February 4, 2023 07:22
-
-
Save random-robbie/4b5c056d58946bc94f70de423adbe25d to your computer and use it in GitHub Desktop.
Install helm for kubernetes on centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for 2.15 you just need to change the version number everything else is the same: