gpt4 book ai didi

openshift - Helm : could not find tiller

转载 作者:行者123 更新时间:2023-12-02 19:03:43 26 4
gpt4 key购买 nike

我收到此错误消息:

➜  ~ helm version
Error: could not find tiller

我创建了 tiller 项目:

➜  ~ oc new-project tiller
Now using project "tiller" on server "https://192.168.99.100:8443".

然后,我在 tiller 命名空间中创建了 tiller:

➜  ~ 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!

所以,在那之后,我一直在等待 tiller pod 准备好。

➜  ~ 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%

有什么想法吗?

最佳答案

尝试删除集群耕耘机

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

再次初始化:

helm init

现在添加服务帐户:

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"}}}}'

这解决了我的问题!

关于openshift - Helm : could not find tiller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51646957/

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