简体   繁体   English

无法在主节点上运行kubernetes仪表板

[英]Can not run kubernetes dashboard on Master node

I installed kubernetes cluster (include one master and two nodes), and status of nodes are ready on master. 我安装了kubernetes集群(包括一个主节点和两个节点),并且节点状态在主节点上已准备就绪。 When I deploy the dashboard and run it by acccessing the link http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ , I get error 当我部署仪表板并通过访问链接http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ ,出现错误

'dial tcp 10.32.0.2:8443: connect: connection refused' Trying to reach: ' https://10.32.0.2:8443/ ' '拨号TCP 10.32.0.2:8443:连接:连接被拒绝'尝试访问:' https ://10.32.0.2:8443 / '

The pod state of dashboard is ready, and I tried to ping to 10.32.0.2 (dashboard's ip) not succesfully 仪表板的pod状态已准备就绪,我尝试无法成功ping到10.32.0.2(仪表板的ip)

I run dashboard as the Web UI (Dashboard) guide suggests. 我按照Web UI(仪表板)指南的建议运行仪表板。

How can I fix this ? 我怎样才能解决这个问题 ?

There are few options here: 这里有几种选择:

  1. Most of the time if there is some kind of connection refused, timeout or similar error it is most likely a configuration problem. 在大多数情况下,如果某种连接被拒绝,超时或类似错误,则很可能是配置问题。 If you can't get the Dashboard running then you should try to deploy another application and try to access it. 如果无法运行仪表板,则应尝试部署另一个应用程序并尝试对其进行访问。 If you fail then it is not a Dashboard issue. 如果失败,则不是仪表板问题。

  2. Check if you are using root/sudo. 检查您是否正在使用root / sudo。

  3. Have you properly installed flannel or any other network for containers? 您是否已正确安装法兰绒或其他用于容器的网络?

  4. Have you checked your API logs? 您是否检查过API日志? If not, please do so. 如果没有,请这样做。

  5. Check the description of the dashboard pod ( kubectl describe ) if there is anything suspicious. 如果发现任何可疑之处,请检查仪表板容器的描述( kubectl describe )。

  6. Analogically check the description of service. 类比检查服务描述。

  7. What is your cluster version? 您的集群版本是什么? Check if any updates are required. 检查是否需要任何更新。

Please let me know if any of the above helped. 请让我知道以上任何帮助。

启动代理(如果尚未启动)

kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='.*'

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

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