How to enable metrics server in minikube

Metrics server is a component that allows you to view the metrics of your cluster. If you would like to experiment with Horizontal Pod Autoscaling (HPA), metrics server is a necessary component in Minikube.

Within minikube, metrics-server is available as a add-on. If it is not enabled already, you can enable it by running the following command:

minikube addon enable metrics-server

Once it is enabled, you can view the metrics of a running pod using the following command:

kubectl top pods

This will show CPU and memory usage of the running pod.

--

--

Microsoft MVP | Developer | Passionate about Cloud, .NET and DevOps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Utkarsh Shigihalli

Microsoft MVP | Developer | Passionate about Cloud, .NET and DevOps