helm安装
- 下载资源
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.16.2-linux-amd64.tar.gz
- 解压并移动目录
tar -zxvf helm-v2.16.2-linux-amd64.tar.gz mv linux-amd64/helm /usr/local/bin
- 设置Tiller服务权限
执行命令apiVersion: v1 kind: ServiceAccount metadata: name: tiller namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: tiller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: tiller namespace: kube-system
kubectl apply -f helm-rbac.yaml
- helm 初始化并安装tiller
helm init --upgrade --service-account tiller --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.2 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
- 查看安装情况
helm version
网友评论