01 May 2022
How to enable metrics server in minikube
- minikube
- k8s
- kubernetes
- howto
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.