openshift安装helm
原创
©著作权归作者所有:来自51CTO博客作者wx5ed8a22dd1db1的原创作品,请联系作者获取转载授权,否则将追究法律责任
安装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.