安装helm
参考K8s安装Helm https://blog.bwcxtech.com/posts/678a712d/
1、 Helm 客户端安装(master上操作)
https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz, 迅雷下载,并上传至服务器
tar -zxf helm-v2.14.1-linux-amd64.tar.gz
cd linux-amd64/
cp helm /usr/local/bin/
验证:
helm version
2. Helm 服务端安装Tiller
在 K8S 集群上每个节点安装 socat 软件(除了这一步,其余的操作都在master执行)
yum install -y socat
创建tiller.yaml
vim tiller.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
kubectl create -f tiller.yaml
初始化helm服务端
helm init --service-account tiller --tiller-image yaokun/tiller:v2.15.2 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
kubectl get pod -n kube-system
最后在master上修改helm chart仓库的地址为azure提供的镜像地址:
helm repo add stable http://mirror.azure.cn/kubernetes/charts
helm repo list
安装 OpenEBS
未完待续