helm

作者: 聖桀 | 来源:发表于2020-05-18 15:21 被阅读0次

1、官网下载helm安装程序

下载地址:https://github.com/helm/helm/releases/选择合适的版本

注:helm版本最好选择低版本,国内无法获取tiller最新镜像。

tar -xf helm-v2.15.2-linux-amd64.tar.gz

cd helm-v2.15.2-linux-amd64/

cp helm /usr/local/bin/

helm version 查看helm安装是否成功。

2、为tiller创建serviceaccount和clusterrolebinding

kubectl create serviceaccount--namespacekube-system tiller

kubectl create clusterrolebinding tiller-cluster-rule--clusterrole=cluster-admin--serviceaccount=kube-system:tiller

helm init 初始化(初始化之前先拉取tiller的镜像)并重新打标为需要的镜像名称

3、为应用程序设置serviceaccount:

kubectl patch deploy--namespace kube-system tiller-deploy-p'{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' 

4、helm init 执行初始化

helm安装之后如果报错,或者无法正常使用检查tiller镜像是否下载成功,pod是否启动成功,2和3 这两步是否执行。

相关文章

网友评论

      本文标题:helm

      本文链接:https://www.haomeiwen.com/subject/pjiuohtx.html