老师,在安装heapster时
kubectl get pods -n kube-system执行成果
NAME READY STATUS RESTARTS AGE
coredns-78fcdf6894-gxmvg 1/1 Running 0 22h
coredns-78fcdf6894-vthjl 1/1 Running 0 22h
etcd-k8s1 1/1 Running 0 22h
heapster-86d674b4f7-px58f 1/1 Running 0 2h
kube-apiserver-k8s1 1/1 Running 0 22h
kube-controller-manager-k8s1 1/1 Running 0 22h
kube-proxy-kjxsc 1/1 Running 0 22h
kube-proxy-rhsz5 1/1 Running 0 20h
kube-proxy-wtrdg 1/1 NodeLost 0 21h
kube-scheduler-k8s1 1/1 Running 0 22h
kubernetes-dashboard-767dc7d4d-jspl5 1/1 Running 0 17h
monitoring-grafana-5c948ff858-fcl8n 1/1 Running 0 2h
monitoring-influxdb-86584cb9b7-28tcc 1/1 Running 0 2h
weave-net-864xb 2/2 Running 0 22h
weave-net-9tqln 2/2 NodeLost 0 21h
weave-net-lq8rg 2/2 Running 0 20h
执行kubectl create -f rbac/heapster-rbac.yaml成功
clusterrolebinding.rbac.authorization.k8s.io/heapster created
但是执行kubectl top node返回
error: metrics not available yet
同时发现在新开的ssh窗口执行:kubectl get pods -n kube-system,返回如下:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
怀疑是dns有问题,请问应该如何查找问题,如何解决呢?