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)

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 !!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With