- 下载helm包
wget https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz
tar -zxvf helm-v2.17.0-linux-amd64.tar.gz
cd linux-amd64/
cp helm /usr/local/bin/
- 创建tiller角色 rbac-config.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
- helm 初始化,需要制定国内镜像,否则镜像下载不了
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.17.0 --service-account tiller
- helm 安装插件
helm plugin install https://github.com/chartmuseum/helm-push
# 也可手动下载,放置于下列目录
cp bin/helmpush /root/.helm/plugins/helm-push/bin/
- helm add repo
helm repo add local http://192.168.111.27:80/chartrepo/datacloud
- helm push charts
helm push --username=${name} --password=${passwd} spark-thriftserver-0.1.0.tgz local