kubernetes dashboard 安装时出现9090: getsockopt: connection refused错误

 

转载于:https://blog.csdn.net/lucy06/article/details/79082302

 

安装kubernetes  dashboard时,出现错误:

Error: 'dial tcp 10.0.66.2:9090: getsockopt: connection timed out' Trying to reach: 'http://10.0.66.2:9090/'

原因是安装flannel 的时候master节点和node节点的网络没有刷新引起的,确保flannel的网段是一致的,如下图所示:

查看k8s-master的网络:

查看k8s-node1的网络:

查看k8s-node2的网络:

如果不一致,则刷新:

systemctl daemon-reload flanneld

systemctl restart flannel

systemctl enable flanneld

重新建立pod,则成功:

kubectl delete  -f kubernetes-dashboard.yaml

kubectl get pods --namespace=kube-system

kubectl create   -f kubernetes-dashboard.yaml

kubectl get pods --namespace=kube-system

 

posted @ 2018-06-06 19:34  山人是我师  阅读(812)  评论(0编辑  收藏  举报