Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Deploying metrics-server to K8 #3

@mirlanimash

Description

@mirlanimash

Tried to deploy metrics-server from
wget https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml -O metrics-server-components.yaml

Getting this error while trying to get kubectl top nodes:
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)

When checked for logs of the pod:

E0223 02:47:56.385022       1 scraper.go:140] "Failed to scrape node" err="Get \"https://10.0.0.25:10250/metrics/resource\": x509: cannot validate certificate for 10.0.0.25 because it doesn't contain any IP SANs" node="worker-0"
E0223 02:47:56.399027       1 scraper.go:140] "Failed to scrape node" err="Get \"https://10.0.0.217:10250/metrics/resource\": x509: cannot validate certificate for 10.0.0.217 because it doesn't contain any IP SANs" node="worker-2"
E0223 02:47:56.400141       1 scraper.go:140] "Failed to scrape node" err="Get \"https://10.0.0.111:10250/metrics/resource\": x509: cannot validate certificate for 10.0.0.111 because it doesn't contain any IP SANs" node="leader"
E0223 02:47:56.402725       1 scraper.go:140] "Failed to scrape node" err="Get \"https://10.0.0.29:10250/metrics/resource\": x509: cannot validate certificate for 10.0.0.29 because it doesn't contain any IP SANs" node="worker-1"

Followed this source and edited yaml file adding - --kubelet-insecure-tls flag under args of the container. But still getting ServiceUnavaliable error. Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions