Study FAQ
How does a vSphere Storage Policy become persistent storage for a VKS workload?
Also asked as 2
- How do vSphere storage policies, StorageClasses, PVCs, and PVs fit together in VKS?
- What happens between a VKS workload requesting storage and vSphere creating the volume?
Answer
In VMware vSphere Kubernetes Service (VKS) on VCF 9.0, a vSphere administrator makes an eligible vSphere Storage Policy available through the vSphere Namespace. The VKS workload cluster exposes a corresponding Kubernetes StorageClass. An application submits a PersistentVolumeClaim (PVC) for that class, and the vSphere CSI integration provisions backing storage that satisfies the policy. Kubernetes binds the claim to a PersistentVolume (PV).
- vSphere Storage Policy sets datastore eligibility and storage capabilities. The backing datastore might be vSAN or a compatible shared VMFS datastore, depending on the class and the enabled features.
- StorageClass and claim express the approved service class for provisioning, requested capacity, and access mode. The PVC is scoped to the application's Kubernetes namespace.
- PV and CSI connect the bound claim to a backing volume. For a supported block volume, Cloud Native Storage (CNS) tracks the underlying volume in vCenter, and CSI handles attachment and mounting when the Pod uses the claim.
From the workload-cluster context, an authorized operator can inspect the claim and the class it actually references. In the Supervisor context, authorized namespace users can inspect the namespace's storage quota entries if they lack permission to list cluster-scoped StorageClasses. Those entries show assigned policies at the Supervisor layer. Verify the class and binding independently in the workload-cluster context.
Official references
- Error: storageclasses.storage.k8s.io is forbidden at the cluster scope
- Configuring Storage Policies for NFS Datastores to Enable ReadWriteMany StorageClasses in vSphere Kubernetes Guest Cluster
- Architecting VMware vSphere Kubernetes Service on VCF: Top Webinar and Field Questions Answered - VMware Cloud Foundation (VCF) Blog
- Storage Classes | Kubernetes
- Persistent Volumes | Kubernetes
Full explanation
vSAN and Persistent Storage Architecture for VKS
Study guide · 3V0-24.25
Read the full explanation