简体   繁体   English

将头盔连接到不同k8s群集中的多个分till

[英]Connect helm to multiple tiller in different k8s clusters

I want to manage different clusters of k8s, 我想管理k8的不同集群,
one called production for prod deployments, 一种叫做production用于产品部署,
and another one called staging other deployments and configurations. 另一个称为staging其他部署和配置。

How can I connect helm to the tiller in those 2 different clusters? 如何将helm连接到这两个不同的群集中的分er?
Assume that I already have tiller installed and I have a configured ci pipeline. 假设我已经安装了tiller并且已经配置了ci管道。

Helm will connect to the same cluster that kubectl is pointing to. Helm将连接到kubectl指向的同一集群。

By setting multiple kubectl contexts and changing them with kubectl config use-context [environment] you can achieve what you want. 通过设置多个kubectl上下文并使用kubectl config use-context [environment]对其进行更改,您可以实现所需的功能。

Of course you will need to set appropriate HELM_ environment values in your shell for each cluster including TLS certificates if you have them enabled. 当然,如果启用了TLS证书,则需要在每个群集中为每个群集设置适当的HELM_环境值,包括TLS证书。

Also it's worth taking steps so that you don't accidentally deploy to the wrong cluster by mistake. 同样值得采取步骤,以免您不小心将其错误地部署到错误的集群。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM