helm安装

2020-09-20  本文已影响0人  求索

helm安装

  1. 下载资源
    wget https://storage.googleapis.com/kubernetes-helm/helm-v2.16.2-linux-amd64.tar.gz
    
  2. 解压并移动目录
    tar -zxvf helm-v2.16.2-linux-amd64.tar.gz
    mv linux-amd64/helm /usr/local/bin
    
  3. 设置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
    
  4. 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
    
  5. 查看安装情况
    helm version
    
上一篇下一篇

猜你喜欢

热点阅读