Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minikube not showing CPU nor memory usage

I have successfully installed kubectl and minikube in my MacbookPro (core i9 with 64 Gb in ram) and I have successfully deployed a pod with a number of replicas. I have also started up the Kubernetes web UI, and the final application runs perfectly well. However, in the Kubernetes Web Console, I can only see "a dash" in CPU usage and Memory columns. Why? Did I forget to set up something? (Just as a reference, please take a look at the attached image) enter image description here

like image 311
Goose Avatar asked Nov 02 '25 13:11

Goose


1 Answers

After 4 hours of digging, I found by myself the solution:

First, I had to install the "metrics-server":

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

After that, enable it:

minikube addons enable metrics-server

That's it !!enter image description here

like image 75
Goose Avatar answered Nov 04 '25 20:11

Goose



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!