Heapster 在安装过程当中, 会报错以下:html
# 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 的性能数据。node
多方查找后,获得这里的解决办法:https://brookbach.com/2018/10/29/Heapster-on-Kubernetes-1.11.3.htmlapi