Kubernetes v1.35: Mutable PersistentVolume Node Affinity (Alpha)
- Kubernetes
- Alibaba Cloud
AI Summary
Kubernetes v1.35 introduces an alpha feature allowing the modification of PersistentVolume (PV) node affinity. This update enables administrators to update storage accessibility settings online, facilitating transitions like migrating from zonal to regional disks without recreating volumes. The article explains the motivation, the current manual implementation process, potential race conditions during scheduling, and future plans for integration with the Container Storage Interface (CSI).
Key Takeaways
- The feature is currently in alpha and requires enabling the 'MutablePVNodeAffinity' feature gate.
- Manual synchronization between the storage provider's backend and the PV object is required.
- Administrators must be aware of potential race conditions where the scheduler might place pods on nodes that have lost access to the volume.
Why it matters
This feature addresses a long-standing limitation in Kubernetes storage management, where static node affinity prevented seamless infrastructure upgrades. By allowing mutable affinity, it enables more flexible, non-disruptive storage migrations and hardware lifecycle management.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.