'kubectl top pods' Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)

12/17/2019

When I am trying to run kubectl top nodes I`m getting the output:

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)

Metric server is able to scrape the metrics, in the logs getting the metrics

ScrapeMetrics: time: 49.754499ms, nodes: 4, pods: 82

...Storing metrics...

...Cycle complete...

But the end points for the metrics service are missing, how can i resolve this issue?

kubectl get apiservices |egrep metrics

v1beta1.metrics.k8s.io   kube-system/metrics-server   False (MissingEndpoints) 

any help will be appriciated!

-- pooja acharya
kubectl
kubernetes
kubernetes-apiserver
metrics

0 Answers