Helm可幫助用戶管理Kubernetes應用程序。Helm Charts可幫助用戶定義,安裝和升級最複雜的Kubernetes應用程序。linux
Helm由客戶端(helm)和服務器(Tiller)構成。客戶端相似於centos7中的yum,用以管理kubernetes中的應用;服務器相似於centos7中的軟件倉庫,用以提供kubernetes中的應用資源。git
github
centos
解壓壓縮包 tar -zxvf helm-v2.14.1-linux-amd64.tar.gz api
將helm二進制文件移動到PATH目錄下 mv linux-amd64/helm /usr/local/bin/helm 服務器
app
1 apiVersion: v1 2 kind: ServiceAccount 3 metadata: 4 name: tiller 5 namespace: kube-system 6 --- 7 apiVersion: rbac.authorization.k8s.io/v1beta1 8 kind: ClusterRoleBinding 9 metadata: 10 name: tiller 11 roleRef: 12 apiGroup: rbac.authorization.k8s.io 13 kind: ClusterRole 14 name: cluster-admin 15 subjects: 16 - kind: ServiceAccount 17 name: tiller 18 namespace: kube-system
建立ServiceAccount和ClusterRoleBinding:阿里雲
kubectl apply -f rbac-config.yaml
url
helm init --upgrade --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.1 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts --service-account tiller
kubectl get pods -n kube-system | grep tiller
查看tiller的repo倉庫
helm repo list
查看helm和tiller的版本信息
helm version