2637309949@qq.com e52396f149 feat: add helm | 4 vuotta sitten | |
---|---|---|
.. | ||
README.md | 4 vuotta sitten | |
helm-v2.16.1-linux-amd64.tar.gz | 4 vuotta sitten |
tar -zxvf helm-v2.16.1-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/
创建名为tiller的ServiceAccount
kubectl create serviceaccount --namespace kube-system tiller
把tiller与角色tiller-cluster-rule进行绑定
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm初始化,其中tiller的镜像来自阿里云,并且将默认仓库也设置为阿里云的
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.1 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts --service-account tiller
等待控制台提示成功后再次执行helm version
helm version