← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Kubernetes v1.37 Promotes Metrics API to Stable (v1)

🔄 Updated 3h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • metrics.k8s.io API graduates to stable (v1) in Kubernetes v1.37.
  • API provides CPU and memory usage for nodes and Pods.
  • No changes to resource types or fields from v1beta1.
  • Used by kubectl top and HorizontalPodAutoscaler (HPA).

Metrics API Reaches Stability

Kubernetes v1.37 officially promotes the metrics.k8s.io API to its stable v1 version. This API is crucial for monitoring CPU and memory usage across Kubernetes nodes and Pods, serving as the backend for commands such as `kubectl top` and for resource-metrics-based autoscaling mechanisms.

Stability Guarantees and No Functional Changes

The graduation to stable signifies that the API now carries the stability guarantees associated with Kubernetes' stable APIs. Importantly, the v1 API retains the same resource types and fields as its v1beta1 predecessor. This means the change is an API-version graduation, not an alteration to the metrics collected or returned by the API.

API History and Purpose

The resource Metrics API was initially introduced as an alpha version in Kubernetes v1.6 and later became beta in v1.8. It has been used in production environments for several years by clients like the HorizontalPodAutoscaler (HPA) and `kubectl top`. The API is designed to be intentionally small, focusing on providing essential resource metrics for autoscaling and basic inspection, rather than replacing full monitoring pipelines or custom metrics APIs.

API Endpoints and Client Support

The stable API exposes two resource types: `NodeMetrics` for node CPU and memory usage, and `PodMetrics` for Pod CPU and memory usage, including a per-container breakdown. Clients can retrieve node metrics from `/apis/metrics.k8s.io/v1/nodes` and Pod metrics from `/apis/metrics.k8s.io/v1/namespaces/{namespace}/pods`. `kubectl top` supports both API versions, preferring v1 when available and falling back to v1beta1. The HPA controller currently supports only v1beta1, with plans for discovery-based selection between v1 and v1beta1 in the future.

Implementation Requirements

No feature gates need to be enabled for the Metrics API. It is served through the API aggregation layer by an implementation such as metrics-server. For the v1 metrics API to be available in a cluster, the chosen implementation must serve the `v1.metrics.k8s.io` API, and an associated APIService must be registered. Implementations are expected to serve both v1 and v1beta1 during the transition period.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~20 min · 17 stories · Aug 27

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Kubernetes v1.37 has promoted the metrics.k8s.io API to stable (v1), providing CPU and memory usage for nodes and Pods. This graduation ensures stability guarantees for the API, which is used by tools like kubectl top and resource-metrics-based autoscaling.