安装 helm 客户端
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash
验证:
helm version
Client: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}
Error: could not find tiller
只能看到 client 版本,还没装服务器。
配置命令自动补全:
echo "source <(helm completion bash)" >> ~/.bashrc
source ~/.bashrc
安装 tiller 服务器
helm init
tiller 也是运行在 kubernetes cluster 中的,查看:
kubectl get --namespace=kube-system svc tiller-deploy
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
tiller-deploy ClusterIP 10.152.183.154 <none> 44134/TCP 83s
kubectl get --namespace=kube-system deployments tiller-deploy
NAME READY UP-TO-DATE AVAILABLE AGE
tiller-deploy 1/1 1 1 2m31s
kubectl get --namespace=kube-system pod tiller-deploy-85686555b8-mckz4
NAME READY STATUS RESTARTS AGE
tiller-deploy-85686555b8-mckz4 1/1 Running 0 3m2s
tiller 的相关组件都正常运行了。
再次查看版本:
helm version
Client: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.0", GitCommit:"d325d2a9c179b33af1a024cdb5a4472b6288016a", GitTreeState:"clean"}