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