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

  3. Joanna Riggs Reply

    Hi,

    I just visited letsdocloud.com and wondered if you’ve ever considered an impactful video to advertise your business? Our videos can generate impressive results on both your website and across social media.

    Our videos cost just $195 (USD) for a 30 second video ($239 for 60 seconds) and include a full script, voice-over and video.

    I can show you some previous videos we’ve done if you want me to send some over. Let me know if you’re interested in seeing samples of our previous work.

    Regards,
    Joanna

    Unsubscribe: https://unsubscribe.video/unsubscribe.php?d=letsdocloud.com

  4. Lenora Braddon Reply

    Hi there,

    I’m reaching out because we’ve just released a complete WordPress video training package with unrestricted Private Label Rights. The package includes 19 professional video lessons across 4 courses, covering everything from WordPress basics to local development.

    Key features:

    Full PLR rights (rebrand, resell, repurpose as you wish)
    4 complete courses with 19 video lessons
    Professional production quality
    Ready-to-launch sales materials included

    This is ideal if you’re looking to quickly launch your own WordPress training business or add to your existing product line.

    For detailed information and pricing, visit: https://furtherinfo.info/wpmk

    Kind regards,
    Lenora

Leave a Reply

*

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