Failed to install metrics-server on minikube

1/17/2022

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
kubernetes
metrics-server

1 Answer

1/27/2022

Enable metrics-server addon in minikube cluster.

Try the following commend.

minikube addons enable metrics-server
-- Amjed saleel
Source: StackOverflow