helm

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 这两步是否执行。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。