helm 是什么
安装helm
wget https://get.helm.sh/helm-v2.15.2-linux-amd64.tar.gz
tar -xf helm-v2.15.2-linux-amd64.tar.gz
cd helm-v2.15.2-linux-amd64/
cp helm /usr/local/bin/
安装helm服务端
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
[root@k8smaster ~]# kubectl get sa -n kube-system |grep tiller
tiller 1 51m
[root@k8smaster ~]# kubectl get clusterrolebindings.rbac.authorization.k8s.io -n kube-system |grep tiller
tiller 52m
# 初始化helm服务端
[root@k8smaster helm-v2.15.1-linux-amd64]# ./helm init --service-account tiller --upgrade -i regirnetes.oss-cn-hangzhou.aliyuncs.com/charts
$HELM_HOME has been configured at /root/.helm.
[root@k8smaster ~]# helm version
Client: &version.Version{SemVer:"v2.15.2", GitCommit:"cf1de4f8ba70eded310918a8af3a96bfe8e7683b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.15.2", GitCommit:"cf1de4f8ba70eded310918a8af3a96bfe8e7683b", GitTreeState:"clean"}
# 安装时候debug
helm init debug
# 卸载helm
helm reset -f
# 移除仓库
helm repo remove stable
# 新增仓库
helm repo add stable http://mirror.azure.cn/kubernetes/charts/
# 更新仓库
helm repo update
# 列出仓库
helm repo list
# 查询仓库
helm search
参考文献
参考一
参考二
网友评论