Cannot install heapster to cluster due to kubelets not allowing to get metrics on port 10255
We cannot install heapster to get better stats for our cluster, so we cannot use commands like
kubectl top nodes for instance.
Heapster gives the following error:
Error in scraping containers from kubelet_summary:x.x.x.x:10255: Get http://x.x.x.x:10255/stats/summary/: dial tcp x.x.x.x:10255: getsockopt: connection refused
I think the kubelet has to have the –readonly-port=10255 option when starting it on the nodes.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.