Kubernetes v1.35 Introduces Mutable PersistentVolume Node Affinity in Alpha
Kubernetes version 1.35 introduces a significant alpha feature that makes the PersistentVolume (PV) node affinity field mutable. Previously immutable since its introduction in v1.10, this field dictates which cluster nodes can access specific storage volumes. The change addresses limitations in managing stateful workloads where storage requirements evolve, such as migrating from zonal to regional disks. While the VolumeAttributesClass API (GA in v1.34) allows for underlying storage migration, Kubernetes previously prevented pod scheduling in new zones due to static PV node affinity records. By enabling mutability, administrators can now update affinity rules from specific zones to broader regions without recreating PVs or risking data loss. This enhancement facilitates more flexible online volume management and supports modern storage provider capabilities like live migration. It bridges the gap between dynamic storage infrastructure changes and Kubernetes' scheduling logic, allowing stateful applications to adapt to regional storage expansions seamlessly. This update is particularly relevant for users leveraging cloud providers offering regional disk options, improving operational flexibility for complex, stateful deployments within Kubernetes clusters.
Wire timeline
Kubernetes v1.35 Introduces Mutable PersistentVolume Node Affinity in Alpha
Kubernetes version 1.35 introduces a significant alpha feature that makes the PersistentVolume (PV) node affinity field mutable. Previously immutable since its introduction in v1.10, this field dictates which cluster nodes can access specific storage volumes. The change addresses limitations in managing stateful workloads where storage requirements evolve, such as migrating from zonal to regional disks. While the VolumeAttributesClass API (GA in v1.34) allows for underlying storage migration, Kubernetes previously prevented pod scheduling in new zones due to static PV node affinity records. By enabling mutability, administrators can now update affinity rules from specific zones to broader regions without recreating PVs or risking data loss. This enhancement facilitates more flexible online volume management and supports modern storage provider capabilities like live migration. It bridges the gap between dynamic storage infrastructure changes and Kubernetes' scheduling logic, allowing stateful applications to adapt to regional storage expansions seamlessly. This update is particularly relevant for users leveraging cloud providers offering regional disk options, improving operational flexibility for complex, stateful deployments within Kubernetes clusters.
Kubernetes Blog