Metrics Server - provide metrics for Kubernetes HPAv2 (Pod auto-scaling)

Test it out

Check that data is being received from nodes:

kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"

Check node usage:

kubectl top node

Check node usage:

kubectl top pod --all-namespaces

Usage instruction

See the Kubernetes documentation for a worked-example of how to use HPAv2.

Horizontal Pod Autoscaler