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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Related github issue: https://github.com/digitalocean/digitalocean-cloud-controller-manager/issues/150
i got this working by installing metrics-server (https://github.com/kubernetes-sigs/metrics-server) and modified the /metrics-server/deploy/kubernetes/metrics-server-deployment.yaml by adding the following to command to look like this:
command: - /metrics-server - --kubelet-insecure-tls - --secure-port=4443 (port number depends on your case) - --metric-resolution=10s - --kubelet-preferred-address-types=InternalIP
Even tough heapster is deprecated, it’s currently the only metrics service which works with kubernetes-dashboard.
I’ve got it working with a helm installment using the https kubelet port 10250 instead of the readonly http port 10255 - which is deprecated and not available on DO too
helm upgrade --install --wait k8s-heapster stable/heapster --set=command='{/heapster,--source=kubernetes:https://kubernetes.default?kubeletHttps=true&kubeletPort=10250&insecure=true}' --namespace kube-system
Or, in yaml:
command:
- /heapster
- --source=kubernetes:https://kubernetes.default?kubeletHttps=true&kubeletPort=10250&insecure=true
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.