metrics-server: Metrics server not running

Hi,

I have deployed the metrics server but it’s not running image

I have added the below lines after “args” in "components.yaml "

command:
        - /metrics-server
        - --kubelet-insecure-tls
        - --kubelet-preferred-address-types=InternalIP

then it worked. Below is the screenshot for reference. image

Can you please add those line. or put the instruction in README.md file.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (11 by maintainers)

Most upvoted comments

also having the same issue where metrics server is trying to scrape old nodes which have been terminated. It occasionally scrapes the new nodes and receives a remote error: tls: internal error

Maybe this is what you need

Kubelet certificate needs to be signed by cluster Certificate Authority (or disable certificate validation by passing --kubelet-insecure-tls to Metrics Server)

https://github.com/kubernetes-sigs/metrics-server/blob/master/README.md#requirements