gpt4 book ai didi

kubernetes - 未找到 Helm 'Error: error installing: namespaces “{username}”'

转载 作者:行者123 更新时间:2023-12-02 12:02:55 25 4
gpt4 key购买 nike

我正在使用Minikube修补Helm。

我了解Helm installs tiller in the kube-system namespace by default:

The easiest way to install tiller into the cluster is simply to run helm init... Once it connects, it will install tiller into the kube-system namespace.



但是相反,它尝试将分er安装在以我命名的命名空间中:
$ ~/bin/minikube start* minikube v1.4.0 on Ubuntu 18.04* Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.* Starting existing virtualbox VM for "minikube" ...* Waiting for the host to be provisioned ...* Preparing Kubernetes v1.16.0 on Docker 18.09.9 ...* Relaunching Kubernetes using kubeadm ...* Waiting for: apiserver proxy etcd scheduler controller dns* Done! kubectl is now configured to use "minikube"$ helm init$HELM_HOME has been configured at /home/mcrenshaw/.helm.Error: error installing: namespaces "mcrenshaw" not found$

I can specify the tiller namespace, but then I have to specify it in every subsequent use of helm.

$ helm init --tiller-namespace=kube-system$HELM_HOME has been configured at /home/mcrenshaw/.helm.Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.To prevent this, run `helm init` with the --tiller-tls-verify flag.For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation$ helm upgrade --install some-thing .Error: could not find tiller$ helm upgrade --install some-thing . --tiller-namespace=kube-systemRelease "some-thing" does not exist. Installing it now.

I suppose specifying the namespace in each command is fine. But it feels incorrect. Have I done something to corrupt my Helm config?

Update:

Per Eduardo's request, here's my helm version:

$ helm version --tiller-namespace=kube-system
Client: &version.Version{SemVer:"v2.15.0", GitCommit:"c2440264ca6c078a06e088a838b0476d2fc14750", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.15.0", GitCommit:"c2440264ca6c078a06e088a838b0476d2fc14750", GitTreeState:"clean"}

最佳答案

设置Tiller默认 namespace 的方法有两种:

  • 使用--tiller-namespace标志(已在使用)。
  • 通过设置$TILLER_NAMESPACE环境变量。

  • 标志配置优先于环境配置。您可能已设置了此环境变量(可以使用 printenv TILLER_NAMESPACE进行检查)。如果是这样,请将其 unset和其他 helm命令正确指向 kube-system命名空间。

    关于kubernetes - 未找到 Helm 'Error: error installing: namespaces “{username}”',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58492256/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com