https://store-images.s-microsoft.com/image/apps.6717.07b31e69-6dec-48ce-80e5-d5a2b7f02f98.6cdbd1c7-3758-4d66-810d-603d60f4fc4b.e4a5f812-81e8-4d78-bb60-cba7b4a6f39d

Metrics Server

yayıncı: pcloudhosting

Version 1.34.3+ Free Support on Ubuntu 24.04

The Metrics Server is a lightweight, cluster-wide aggregator of resource usage data in Kubernetes. It collects metrics such as CPU and memory usage from nodes and pods, providing real-time insights into cluster performance. Metrics Server is designed for efficient resource utilization and high concurrency, making it essential for Kubernetes autoscaling and monitoring in cloud-native environments.

Features of Metrics Server:

  • Collects CPU and memory metrics from nodes and pods.
  • Provides real-time resource usage for monitoring and autoscaling.
  • Supports Kubernetes Horizontal Pod Autoscaler (HPA).
  • Runs as a cluster service communicating with kubelets.
  • Lightweight and optimized for low resource consumption.
  • Essential for kubectl commands like kubectl top nodes and kubectl top pods.
Common Metrics Server Commands:
$ kubectl top nodes
$ kubectl top pods -A
$ kubectl get deployment metrics-server -n kube-system
$ kubectl logs -n kube-system deployment/metrics-server
  

To Check Metrics Server Version:
$ kubectl get deployment metrics-server -n kube-system -o yaml | grep image:

Access Metrics Server Information:
  • Namespace: kube-system
  • Deployment Name: metrics-server
  • Logs and Pod Status: kubectl logs -n kube-system deployment/metrics-server
  • Version: kubectl get deployment metrics-server -n kube-system -o yaml | grep image:

Disclaimer: Metrics Server is open-source software maintained by the Kubernetes community. It is provided "as is" without warranties or guarantees. Users are responsible for proper configuration, security hardening, resource monitoring, and compliance with Kubernetes best practices.