赫尔姆:找不到分蘖

Jor*_*rdi 17 openshift kubernetes-helm

我收到此错误消息:

?  ~ helm version
Error: could not find tiller
Run Code Online (Sandbox Code Playgroud)

我创建了tiller项目:

?  ~ oc new-project tiller
Now using project "tiller" on server "https://192.168.99.100:8443".
Run Code Online (Sandbox Code Playgroud)

然后,我创建tillertiller命名空间:

?  ~ helm init --tiller-namespace tiller
$HELM_HOME has been configured at /home/jcabre/.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
Happy Helming!
Run Code Online (Sandbox Code Playgroud)

所以,在那之后,我一直在等待tillerpod准备好了.

?  ~ oc get pod -w
NAME                             READY     STATUS    RESTARTS   AGE
tiller-deploy-66cccbf9cd-84swm   0/1       Running   0          18s
NAME                             READY     STATUS    RESTARTS   AGE
tiller-deploy-66cccbf9cd-84swm   1/1       Running   0          24s
^C%               
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

小智 35

尝试删除群集分cluster

kubectl get all --all-namespaces | grep tiller
kubectl delete deployment tiller-deploy -n kube-system
kubectl delete service tiller-deploy -n kube-system
kubectl get all --all-namespaces | grep tiller
Run Code Online (Sandbox Code Playgroud)

再次初始化:

helm init
Run Code Online (Sandbox Code Playgroud)

现在添加服务帐户:

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
Run Code Online (Sandbox Code Playgroud)

这解决了我的问题!

  • 从版本 3.0 开始,不再需要 helm init,tiller 也消失了 (2认同)

Vis*_*ant 16

您尚未配置helm,请使用以下命令:

helm init
Run Code Online (Sandbox Code Playgroud)

这将在您的主目录中.helm使用repository,plugins等创建.

背景: helm客户端和服务器附带,如果你有不同的部署环境,你的helm服务器(称为tiller)可能是不同的,在这种情况下,有两种方法可以指向tiller

  • 设置环境变量 TILLER_NAMESPACE
  • --tiller-namespace Tiller的字符串命名空间(默认为"kube-system")

有关更多详细信息,请查看helm READ.md文件.


Mar*_*icz 9

您将tiller安装到非默认命名空间中,因此您必须告诉helm在哪里查找.

helm --tiller-namespace tiller  version
Run Code Online (Sandbox Code Playgroud)


Ani*_*udh 7

现在您可以升级到最新版本的 Helm 或任何大于 3.0.0 的版本。

你不需要做

helm init
Run Code Online (Sandbox Code Playgroud)

当您开始使用 helm 时,Tiller 和 client 目录会自动初始化。正如这里提到的


Ibr*_*imi 5

首先,您需要创建供柜员使用的服务帐户:

kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
Run Code Online (Sandbox Code Playgroud)

要验证Tiller是否正在运行:

kubectl get pods --namespace kube-system
Run Code Online (Sandbox Code Playgroud)

DigitalOcean参考