Metrics Server
Metrics Server
(such as CPU and memory) which is useful for scaling, while kube-state-metrics focuses more
on the health of the Kubernetes objects in your cluster, such as the availability of pods and the
readiness of nodes.
Metrics server:
Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes
apiserver through Metrics API for use by Horizontal Pod Autoscaler and Vertical Pod
Autoscaler. Metrics API can also be accessed by kubectl top, making it easier to debug
autoscaling pipelines.
Metrics Server is not meant for non-autoscaling purposes. For example, don't use it to forward
metrics to monitoring solutions, or as a source of monitoring solution metrics. In such cases
please collect metrics from Kubelet /metrics/resource endpoint directly.
https://github.com/kubernetes-sigs/metrics-server
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/
components.yaml