Kubernetes仪表板无法启动

时间:2017-02-21 13:30:55

标签: kubernetes

我在使用kubeadm安装kubernetes之后创建了仪表板。

kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml

等一会儿,吊舱崩溃如下:

kubectl get pods --all-namespaces
kubernetes-dashboard-3203831700-wq0v4   0/1       CrashLoopBackOff   3          3m

我检查了pod日志:

kubectl logs -f kubernetes-dashboard-3203831700-wq0v4 -n kube-system                      Using HTTP port: 9090
Creating API server client for https://10.96.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.96.0.1:443/version: dial tcp 10.96.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

但我手动尝试了,网址有效:

# curl https://10.96.0.1:443/version
curl: (35) Peer reports incompatible or unsupported protocol version.

以前有人遇到过这个问题吗?还是帮帮我?

1 个答案:

答案 0 :(得分:0)

我执行以下命令:

rm -rf ~/.kube

现在它有效。还是有点奇怪:-(