Metrics Server and Resource Metrics
Metrics Server collects resource usage data from the kubelet and exposes it through the Kubernetes API.
What It Enables:
- CPU and memory metrics via
kubectl top
- Autoscaling based on resource usage
Install Example:
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Usage:
kubectl top pods
kubectl top nodes