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

Deploying metrics-server to K8 #3

Open
mirlanimash opened this issue Feb 23, 2022 · 2 comments
Open

Deploying metrics-server to K8 #3

mirlanimash opened this issue Feb 23, 2022 · 2 comments

Comments

@mirlanimash
Copy link

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?

@egorshulga
Copy link
Owner

Sorry for late response. I think I'll need some more time finding out what is needed, but my strong guess is that there is some component missing in the cluster. I'll leave a note for myself: requirement for metrics-server.
And contributions are also highly welcomed 😉

@mirlanimash
Copy link
Author

Thanks for reply @egorshulga . I was thinking of closing this issue since it is not really related with deploying the cluster. The cluster is up and running perfectly. I will try to research and if I find anything useful share. As you know, all we lack is time 😓

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants