0

I am trying to install metrics-server on my Kubernetes cluster. But it is not going to READY mode.

I am was installed metrics-server in this method

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

enter image description here

After installing i was tried some of those commands, kubectl top pods, kubectl top nodes. But i got an error

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

Metrics server is failed to start

enter image description here

Amjed saleel
  • 348
  • 1
  • 3
  • 15
  • https://stackoverflow.com/questions/62138734/metric-server-not-working-unable-to-handle-the-request-get-nodes-metrics-k8s check this thread – mohan08p Jan 17 '22 at 12:06
  • Does this answer your question? [Metric server not working : unable to handle the request (get nodes.metrics.k8s.io)](https://stackoverflow.com/questions/62138734/metric-server-not-working-unable-to-handle-the-request-get-nodes-metrics-k8s) – mohan08p Jan 17 '22 at 12:07
  • 1
    I am fixed it, using the command `minikube addons enable metrics-server` – Amjed saleel Jan 21 '22 at 06:22
  • 1
    can you post your own answer based on results? It will be easier in future for new people find the same – Vit Jan 26 '22 at 15:47

1 Answers1

3

Enable metrics-server addon in minikube cluster.

Try the following commend.

minikube addons enable metrics-server
Amjed saleel
  • 348
  • 1
  • 3
  • 15