部署 Helm — Kubernetes(49)

in kubernetes •  6 years ago 

本节我们将安装和部署 Helm 客户端和 Tiller 服务器。

Helm 客户端

通常,我们将 Helm 客户端安装在能够执行 kubectl 命令的节点上,只需要下面一条命令:

curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash

787.png

执行 helm version 验证。

788.png

目前只能查看到客户端的版本,服务器还没有安装。

helm 有很多子命令和参数,为了提高使用命令行的效率,通常建议安装 helm 的 bash 命令补全脚本,方法如下:

helm completion bash > .helmrc
echo "source .helmrc" >> .bashrc

重新登录后就可以通过 Tab 键补全 helm 子命令和参数了。

789.png

Tiller 服务器

Tiller 服务器安装非常简单,只需要执行 helm init

790.png

Tiller 本身也是作为容器化应用运行在 Kubernetes Cluster 中的:

791.png

可以看到 Tiller 的 Service、Deployment 和 Pod。

现在, helm version 已经能够查看到服务器的版本信息了。

792.png

Helm 部署完毕,下一节开始使用 Helm。

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  6 years ago Reveal Comment