如何通过环境变量设置舵柄分拣器名称空间?

时间:2018-12-09 09:13:18

标签: kubernetes kubernetes-helm

我以前已将分er安装到特定的名称空间中。

我设置了一个环境变量来设置'tiller'命名空间-但我不记得这个环境变量是什么-似乎无法通过网络搜索找到它。

这是什么钥匙?

2 个答案:

答案 0 :(得分:3)

通过执行 helm -h ,您可以看到它使用的环境变量列表:

Environment:
  $HELM_HOME          set an alternative location for Helm files. By default, these are stored in ~/.helm
  $HELM_HOST          set an alternative Tiller host. The format is host:port
  $HELM_NO_PLUGINS    disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins.
  $TILLER_NAMESPACE   set an alternative Tiller namespace (default "kube-system")
  $KUBECONFIG         set an alternative Kubernetes configuration file (default "~/.kube/config")
  $HELM_TLS_CA_CERT   path to TLS CA certificate used to verify the Helm client and Tiller server certificates (default "$HELM_HOME/ca.pem")
  $HELM_TLS_CERT      path to TLS client certificate file for authenticating to Tiller (default "$HELM_HOME/cert.pem")
  $HELM_TLS_KEY       path to TLS client key file for authenticating to Tiller (default "$HELM_HOME/key.pem")
  $HELM_TLS_VERIFY    enable TLS connection between Helm and Tiller and verify Tiller server certificate (default "false")
  $HELM_TLS_ENABLE    enable TLS connection between Helm and Tiller (default "false")

答案 1 :(得分:1)

TILLER_NAMESPACE
  

Helm将在kube-system命名空间中寻找Tiller,除非   --tiller-namespace或TILLER_NAMESPACE已设置。

https://docs.helm.sh/using_helm#easy-in-cluster-installation