我设置了舵柄和分till器。我有分till部署。 昨天,我可以定期跑步。但是今天,我收到了此错误消息 错误:找不到现成的分till荚 我该如何解决。
我通过命令尝试过的一些信息。
它无法获取服务器信息。
$ helm version
Client: &version.Version{SemVer:"v2.14.1",
GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Error: could not find a ready tiller pod
我有一个正在运行的tiller-deploy-675656bbcf-5q5gp。
$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
tiller-deploy-675656bbcf-5q5gp 1/1 Running 0 46h
tunnelfront-557bbd9fb5-b8g7h 1/1 Running 0 47h
检查已部署的事物。
$ kubectl get deploy -n kube-system
NAME READY UP-TO-DATE AVAILABLE AGE
tiller-deploy 0/1 1 0 46h
tunnelfront 0/1 1 0 47h
描述分till部署信息,但尚未准备好。
$ kubectl describe pod tiller-deploy -n kube-system
Name: tiller-deploy-675656bbcf-5q5gp
Namespace: kube-system
Priority: 0
PriorityClassName: <none>
Node: aks-default-41105859-0/10.240.0.4
Start Time: Wed, 19 Jun 2019 20:09:25 +0700
Labels: app=helm
name=tiller
pod-template-hash=675656bbcf
Annotations: <none>
Status: Running
IP: 10.244.1.3
Controlled By: ReplicaSet/tiller-deploy-675656bbcf
Containers:
tiller:
Container ID: docker://7e9b73333473bc5026b4790031173adf9e77669ff4eb856840766052395dba85
Image: gcr.io/kubernetes-helm/tiller:v2.14.1
Image ID: docker-pullable://gcr.io/kubernetes-helm/tiller@sha256:f8002b91997fdc2c15a9c2aa994bea117b5b1683933f3144369862f0883c3c42
Ports: 44134/TCP, 44135/TCP
Host Ports: 0/TCP, 0/TCP
State: Running
Started: Wed, 19 Jun 2019 20:09:35 +0700
Ready: True
Restart Count: 0
Liveness: http-get http://:44135/liveness delay=1s timeout=1s period=10s #success=1 #failure=3
Readiness: http-get http://:44135/readiness delay=1s timeout=1s period=10s #success=1 #failure=3
Environment:
TILLER_NAMESPACE: kube-system
TILLER_HISTORY_MAX: 0
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-5b6d7 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady True
PodScheduled True
Volumes:
default-token-5b6d7:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-5b6d7
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events: <none>
全部。
答案 0 :(得分:5)
就我而言
helm init --upgrade
解决了这个问题。
答案 1 :(得分:1)
我遇到了同样的问题。一切工作正常,但我陷入了同样的错误。 以下命令救了我
$ kubectl delete deployment tiller-deploy --namespace kube-system
$ helm init
答案 2 :(得分:0)
我遇到了同样的问题。就我而言,我被RBAC撤销并加入。刚开始掌舵时,我已经创建了服务帐户。然后,我被撤消了对该集群的访问权并重新添加。不能完全确定这是否是原因,但是当尝试执行ls时,我会收到该错误。
我按照Alexey的建议尝试了头盔初始化--upgrade,但未成功。
我重新启动了分pod荚,一切又恢复了。 耸肩