Helm入门指南

無名 发表于: 2019-09-26   最后更新时间: 2019-09-27  

必备条件

要成功且正确地使用Helm,必须满足以下先决条件。

  • Kubernetes集群
  • 安装安全配置(如果需要)
  • 安装 Helm 和 Tiller

注意:1.6之前的Kubernetes版本对基于角色的访问控制(RBAC)的支持有限或不支持。

Helm将通过读取你的Kubernetes配置文件(通常是$HOME/.kube/config)来确定将Tiller安装在哪里。这和kubectl是使用的同一文件。

要找出将Tiller安装到了哪个集群,可以运行kubectl config current-contextkubectl cluster-info

$ kubectl config current-context
my-cluster

安装HELM

下载Helm客户端的二进制版本。也可以使用homebrew

各种安装方式,请参阅安装指南

INITIALIZE HELM AND INSTALL TILLER

Once you have Helm ready, you can initialize the local CLI and also install Tiller into your Kubernetes cluster in one step:

$ helm init --history-max 200

TIP: Setting --history-max on helm init is recommended as configmaps and other objects in helm history can grow large in number if not purged by max limit. Without a max history set the history is kept indefinitely, leaving a large number of records for helm and tiller to maintain.

This will install Tiller into the Kubernetes cluster you saw with kubectl config current-context.

TIP: Want to install into a different cluster? Use the --kube-context flag.

TIP: When you want to upgrade Tiller, just run helm init --upgrade.

By default, when Tiller is installed, it does not have authentication enabled. To learn more about configuring strong TLS authentication for Tiller, consult the [Tiller TLS guide].



您需要解锁本帖隐藏内容请: 点击这里
本帖隐藏的内容




上一条: 到头了!
下一条: 安装 Helm