You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
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?