您的位置:首页 > 其它

【Kubernetes】无法启动dashboard插件

2018-02-04 21:45 531 查看
问题描述
  Kubernetes集群中安装dashboard插件,pod创建失败,查看docker中dashboard容器的日志,出现如下错误信息:

[root@localhost ~]# docker logs 625c923f90ec
Using HTTP port: 9090
Creating API server client for https://10.254.0.1:443 Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service accounts configuration) or the --apiserver-host param points to a server that does not exist. Reason: Get https://10.254.0.1:443/version: dial tcp 10.254.0.1:443: i/o timeout
Refer to the troubleshooting guide for more information: https://github.com/kubernetes/dashboard/blob/master/docs/user-guide/troubleshooting.md


解决方案
  看到错误后,去检查api-server的运行情况,发现api-server正常运行,并且集群工作正常。最后发现是因为node节点上的kube-proxy组件没有正常启动,重新启动kube-proxy,dashboard创建成功。

systemctl restart kube-proxy
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: