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.
metrics-server is available as a add-on. If it is not enabled already, you can enable it by running the following command:
minikube addons 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.