Heapster 在安装过程中, 会报错如下:

# kubectl get pods --namespace=kube-system|grep heapster
# kubectl logs --namespace=kube-system heapster-76694897cf-9tnjc

W1227 01:38:25.001190       1 manager.go:152] Failed to get all responses in time (got 0/2)
E1227 01:39:05.009389       1 manager.go:101] Error in scraping containers from kubelet:10.247.15.92:10255: failed to get all container stats from Kubelet URL "http://10.247.15.92:10255/stats/container/": Post http://10.247.15.92:10255/stats/container/: dial tcp 10.247.15.92:10255: getsockopt: connection refused
E1227 01:39:05.010706       1 manager.go:101] Error in scraping containers from kubelet:10.247.15.75:10255: failed to get all container stats from Kubelet URL "http://10.247.15.75:10255/stats/container/": Post http://10.247.15.75:10255/stats/container/: dial tcp 10.247.15.75:10255: getsockopt: connection refused

直接导致dashboard内,无法收集、查询各node/pod 的性能数据。

多方查找后,得到这里的解决办法:https://brookbach.com/2018/10/29/Heapster-on-Kubernetes-1.11.3.html

12-28 19:43