ynqa / ktop

top for k8s
MIT License
188 stars 4 forks source link

Could not find requested resource #6

Open kunal-bhatia opened 5 years ago

kunal-bhatia commented 5 years ago

On requesting for a specific namespace(e.g. ehcache-demo), it throws the following error:-

ktop -n ehcache-demo
Error: the server could not find the requested resource (get nodes.metrics.k8s.io): the server could not find the requested resource (get pods.metrics.k8s.io): the server could not find the requested resource (get pods.metrics.k8s.io)
salaboy commented 4 years ago

This is also happening to me in Kubernetes KIND.. any idea how to resolve that? Is that something that needs to be enabled in the cluster?

pditommaso commented 4 years ago

Same here

ynqa commented 4 years ago

It may be caused that there are not metric-server on your k8s. For exampe, If you use on minkube let's enable metric-server via $ minikube addons enable metrics-server.