安裝helm命令
- 手工安裝,下載https://github.com/helm/helm/releases
unzip helm.zip
chmod +x helm
mv helm /usr/local/bin
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
切換當前命令空間
export TILLER_NAMESPACE=kube-system
oc project kube-system
創建賬號 並授權
oc create serviceaccount --namespace kube-system tiller
oc create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
安裝
helm init --service-account=tiller --tiller-namespace=kube-system --tiller-image=registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.9.0 --stable-repo-url https://burdenbear.github.io/kube-charts-mirror/
oc get po --namespace kube-system
oc delete deployment tiller-deploy --namespace kube-system
helm reset
提示
Tip: use --force to remove Tiller. Releases will not be deleted.