欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

helm-v2.16.0 安装

程序员文章站 2022-05-29 22:35:03
...

helm-v2.16.0 安装

官方文档:

下载文件

https://github.com/helm/helm/releases/tag/v2.16.0

安装

tar zxvf helm-v2.16.0-linux-amd64.tar.gz
cp ./linux-amd64/helm /usr/local/bin/helm
chmod +x /usr/local/bin/helm

初始化

helm init

问题. 拉去镜像失败. 替换镜像.

kubectl edit deploy tiller-deploy -n kube-system

registry.cn-hangzhou.aliyuncs.com/hlc-k8s-gcr-io/tiller:v2.16.0

检查状态

# helm version
Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}

client 和 server 都有信息表示正常.

给tiller权限

kubectl apply -f tiller-rbac.yaml

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
相关标签: 虚拟化