Study FAQ
How should I align VKS Pod scheduling with storage topology across zones?
Also asked as 2
- How do I keep VKS workloads scheduled where their persistent volumes are accessible?
- When should a VKS storage design use WaitForFirstConsumer binding?
Answer
In a zoned VKS deployment on VCF 9.0, ensure an eligible worker node and eligible storage overlap in the same accessible topology. With a vSphere CSI-backed class that supports it, WaitForFirstConsumer lets the first consuming Pod's scheduling constraints inform dynamic provisioning or binding.
Check the class's effective volumeBindingMode. Immediate can bind or provision as soon as the claim is created, before Kubernetes has evaluated where the consuming Pod can run. Delayed binding considers factors such as selectors, affinity, taints and tolerations. It cannot create shared storage access where the datastore is inaccessible, and a Pod with nodeName set bypasses the scheduler this mode relies on.
Before approving the design, check storage policy, eligible datastores, node placement constraints and PV node affinity together. Test scheduling and recovery using each intended placement and volume access mode. If a workload must survive across zones, validate its application replication and recovery design separately from placement.
Official references
Full explanation
vSAN and Persistent Storage Architecture for VKS
Study guide · 3V0-24.25
Read the full explanation