-->
  • Recent Articles

    unable to fetch metrics from Kubelet

    Error: 

    Failed to scrape node" err="Get \"https://192.168.56.110:10250/metrics/resource\": dial tcp 192.168.56.110:10250: connect: connection refused" node="k8s-node1"


    The above given error will come , while "metrics-server" is trying to scrape metrics from Kubelet.


    Solution: 

    To solve this issue we need to set the kubelet flag "--authorization-mode=AlwaysAllow" and "anonymous enabled=true" , and metrics-server flag "--kubelet-insecure-tls".

    kubelet-config-for-metrics
    kubelet-config-for-metrics

    metrics-server-for-metrics
    metrics-server-for-metrics
    After that restart Kubelet Servics.

    Thats it. 

    Sharing is caring.

    No comments