简体   繁体   English

无法获取kubernetes仪表板

[英]Unable to get kubernetes dashboard

I've installad a new cluster (version 1.13.5 of kubectl kubelet kubeadm), then I've installed flannel and add a worker node. 我已经安装了一个新集群(kubectl kubelet kubeadm的1.13.5版),然后安装了法兰绒并添加了一个工作节点。 Now I'm trying to add kubernetes dashboard to my cluster but after i run 现在我正在尝试将kubernetes仪表板添加到集群中,但是在我运行之后

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

I've this situation 我有这种情况

kubernetes-dashboard-****   0/1     CrashLoopBackOff   1          8s

Then if I get the log i can see this 然后,如果我得到日志,我可以看到

 Error while initializing connection to Kubernetes apiserver...

Where I'm wrong? 我哪里错了?

It seems that the problem was on the worker, when I put the dashboard on master the pod starts. 看来问题出在工人身上,当我将仪表板放到母板上时,吊舱启动了。 Maybe the kube dashboard has to be installed on the master or there is something wrong with flannel and the master-node communication. 也许必须将kube仪表板安装在主服务器上,或者绒布和主节点与节点之间的通信出现问题。

检查api-server pod是否正在运行,以及KubeDNS是否正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM