2

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!

acid_fuji
  • 6,287
  • 7
  • 22
pooja acharya
  • 31
  • 1
  • 3
  • Can you add the output of `kubectl get pods -n kube-system` and `kubectl describe -n kube-system pod ` to your question? – char Dec 17 '19 at 13:19
  • The issue here is similar to the one raised in other stack posts and has been answered. Refer to the links[1](https://stackoverflow.com/questions/53811388/error-from-server-serviceunavailable-the-server-is-currently-unable-to-handle?rq=1) [2](https://stackoverflow.com/questions/62138734/metric-server-not-working-unable-to-handle-the-request-get-nodes-metrics-k8s?rq=1) or if your issue got resolved, please post the procedure you have followed. – Srividya Oct 01 '21 at 12:06

0 Answers0