logo

Unable to get Kubernetes Node Metrics: http://:10255: getsockopt: connection refused

Some kubernetes action šŸ™‚

I’ve just installed prometheus-grafana monitoring on my kubeadm built k8s cluster. This is the repo i used to do such:

https://github.com/giantswarm/prometheus

After installing, there was an error getting node metrics. The error:

Get http://172.16.20.14:10255/metrics: dial tcp 172.16.20.14:10255: getsockopt: connection refused

To fix this, you need to allow kubelet read-only port by specifying a number other than 0 ( as per kuberetes io documentation

The process (NOTE: I”m using CentOS7 as Node)

  • Login to each node, and edit the file /etc/kubernetes/kubelet-config.yaml
  • Specify the port (in my case: 10255) in the following line: readOnlyPort: 10255
  • Save and restart the kubelet (systemctl restart kubelet)

Hope that helps!

  1. Gemma Marshall Reply

    Hi there,

    We run an Instagram growth service, which increases your number of followers both safely and practically.

    – We guarantee to gain you 300+ quality followers per month.
    – People follow you because they are interested in you, increasing likes, comments and interaction.
    – All actions are made manually by our team. We do not use any ‘bots’.

    The price is just $60 (USD) per month, and we can start immediately.

    If you’d like to see some of our previous work, let me know, and we can discuss it further.

    Kind Regards,
    Gemma

  2. Emma Wilson Reply

    Hi there,

    We reach a large global audience of over 30 million and we’re reaching out to ask if you’d be interested in us promoting letsdocloud.com?

    We also offer local promotion.

    If growing your audience is a priority right now, which of these is more relevant to your current goals — local or global?

    If you would like further information just get back in touch.

    Kind Regards,
    Emma

Leave a Reply to Gemma Marshall Cancel reply

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.