Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Blog 5 min read Release mediumAdept

Kubernetes v1.37: Tracking When a PersistentVolumeClaim Was Last Used (Beta)

Kubernetes v1.37 promotes the PersistentVolumeClaimUnusedSinceTime feature gate to Beta and enables it by default. The PVC protection controller now maintains an `Unused` condition on every PVC, set True when no non-terminal pod references the claim. Completed pods (Succeeded/Failed) don't count, but pending or unschedulable pods do, and the condition flips only after the last referencing pod goes away. The condition's `lastTransitionTime` records when a PVC became idle, so a kubectl plus jq query can find orphaned volumes unused for more than 30 days and target them for cleanup or cost reduction.

Related posts

  • Kubernetes v1.37: Storage Version Migration Enabled by Default

    Kubernetes Blog mediumAdept

    Storage version migration (SVM) is GA and enabled by default in Kubernetes v1.37, adding the built-in StorageVersionMigration API (storagemigration.k8s.io/v1) and a control-plane controller that rewrites stored objects to the current storage version. This removes the need for manual kubectl get/replace scripts or the out-of-tree kube-storage-version-migrator when dropping old CRD versions such as v1alpha1, or when re-encrypting data after enabling encryption at rest or rotating keys. Creating a StorageVersionMigration object starts the migration, and its status conditions report progress. After success, a CRD's .status.storedVersions should list only the preferred version. If it doesn't, the CRD changed mid-migration and the migration should be retried.

  • Kubernetes v1.37 Sneak Peek

    Kubernetes Blog mediumAdept

    Kubernetes 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.38 Sneak Peek

    Kubernetes Blog hardMaster

    Kubernetes v1.38, planned for December 16, 2026, will require container runtimes to report the cgroup driver via the CRI RuntimeConfig RPC. The kubelet will reject the cgroupDriver config field unless the temporary LegacyCgroupDriverFallback gate is enabled, and kubeadm preflight will fail on runtimes that lack the RPC. On cgroup v2 nodes using LimitedSwap, swap limits will follow pod-level memory settings, so Pods whose pod-level request equals their limit get no swap. The kubectl WebSocket opt-out environment variables and the kuberc allowlist `name` field are removed. kuberc, pod-level resources and DRA partitionable devices are expected to go stable, and an alpha EvictionRequest API lets responders prepare Pods before eviction while still respecting PDBs.

  • How We Oops-Proofed Infrastructure Deletion on Railway

    Railway mediumAdept

    Railway now gives deleted persistent volumes a 48-hour grace period during which deletion can be undone, built on Temporal durable workflows. Committing an environment patch starts a workflow via signalWithStart. A delayed-deletion workflow marks the volume's deletedAt, notifies admins, then waits on a condition until a cancel signal arrives or the timeout expires. If cancelled, it restores the volume. Otherwise a child workflow with a 1-hour timeout tears down each instance through the router and compute host (ZFS recursive destroy) and then tombstones or hard-deletes the database records, with non-cancellable cleanup of the state on failure.

  • Kubernetes v1.37: Metrics API graduates to stable

    Kubernetes Blog mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: