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 |
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
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.