Kubernetes v1.37: Metrics API graduates to stable
Kubernetes v1.37 graduates the metrics.k8s.io resource Metrics API, which supplies node and Pod CPU and memory usage to kubectl top and the HorizontalPodAutoscaler, to stable v1. The v1 surface is identical to v1beta1, with the same NodeMetrics and PodMetrics types and no field or semantic changes. kubectl top prefers v1 and falls back to v1beta1, but the HPA controller still only supports v1beta1. Metrics implementations such as metrics-server must serve v1 and register a v1.metrics.k8s.io APIService, and should keep serving both versions during the transition.
Related posts
- Kubernetes v1.37: Garhwal
Kubernetes Blog mediumAdeptKubernetes v1.37 ships 67 enhancements: 16 Stable, 23 Beta, 27 Alpha and 1 deprecation. Highlights include stable resilient watch cache initialization, where kube-apiserver now returns HTTP 429 instead of overloading etcd, so clients should honor Retry-After and back off. HPA scale-to-zero reaches Beta for object and external metrics, admission policies can be loaded from static manifests, and Pod-level checkpoint/restore arrives in Alpha via new CRI RPCs. Stable graduations include KYAML, metrics.k8s.io v1, SELinux mount-based labeling (which can break Pods with different labels sharing a volume), several DRA features, StorageVersionMigration, and Pod certificates with ClusterTrustBundles.
- Kubernetes v1.37: Native Histograms Graduates to Beta
Kubernetes Blog mediumAdeptKubernetes v1.37 promotes native histogram support (KEP-5808) to Beta, on by default, so control plane and node components expose Prometheus Native Histograms with exponential buckets alongside classic ones. The implementation lives in k8s.io/component-base/metrics, defaults to BucketFactor 1.1 (about 5% worst-case quantile error) and MaxBucketNumber 160, and uses dual exposition over Protobuf so existing dashboards keep working. To migrate, enable scrape_native_histograms per job in Prometheus 3.x and keep always_scrape_classic_histograms: true during the transition. Native histograms let PromQL histogram_quantile run on the metric name directly without _bucket suffixes or sum by (le).
- Kubernetes v1.37: Pod-Level Resource Managers graduated to Beta
Kubernetes Blog hardMasterKubernetes v1.37 promotes Pod-Level Resource Managers to Beta behind the `PodLevelResourceManagers` feature gate, disabled by default. The feature lets the kubelet's Topology, CPU and Memory Managers use pod-level `.spec.resources` for placement, so primary containers get exclusive NUMA-aligned cores while non-Guaranteed sidecars share a pod-isolated pool without dedicated physical cores. Beta also adds top-level `cpu_ids` and `memory` fields to the v1 PodResources gRPC API, letting monitoring tools and device plugins read pod-level exclusive assignments without double-counting container allocations.
- Kubernetes v1.37 Sneak Peek
Kubernetes Blog mediumAdeptKubernetes v1.37 deprecates kube-proxy's ipvs mode, which still relies on iptables underneath. ipvs is slated to be off by default by v1.40 and removed by v1.43. The release also deprecates `kubectl run -f`, strictly forbids static Pods from referencing Secrets or ConfigMaps, and keeps cgroup v1 behind a temporary `failCgroupV1: false` override ahead of its removal. SELinuxMount going GA is a breaking change: pods with different SELinux labels sharing a volume on one node may fail to start unless `seLinuxChangePolicy: Recursive` is set. Featured enhancements are the metrics.k8s.io API reaching GA, rootless kubelet in a user namespace moving to Beta, and a reworked alpha Volume Health Monitor with four new CSI RPCs that surface health in PVC, Pod and CSINode status.
- Kubernetes v1.37: Scale Workloads to Zero with HorizontalPodAutoscaler
Kubernetes Blog mediumAdeptKubernetes v1.37 promotes HPA scale-to-zero to Beta and enables it by default, so a HorizontalPodAutoscaler with minReplicas: 0 can scale workloads to zero and back based on object or external metrics such as queue length. Resource metrics like CPU and memory cannot do this, because they come from running Pods and disappear at zero. The controller records a ScaledToZero status condition to tell its own scale-downs apart from manual pauses, and it will not wake a workload an operator set to zero. A worked example uses Prometheus Adapter to expose a queue-lag metric, with caveats: cold-start latency, Services don't buffer HTTP requests while no Pods are ready, and both control-plane components need the feature gate during version-skewed upgrades. Before downgrading, set minReplicas back to at least one.