Study FAQ
How do I troubleshoot a PersistentVolumeClaim that stays Pending in VKS?
Also asked as 2
- Why is CSI not provisioning a volume for a Pending VKS PVC?
- Which Kubernetes and vSphere checks identify a VKS claim that will not bind?
Answer
Start with the claim events and the StorageClass it references in the VKS workload cluster. In VCF 9.0, a Pending claim can be expected while a WaitForFirstConsumer class waits for a schedulable Pod. A provisioning failure after selection requires tracing the request through the vSphere Namespace and the CSI integration.
- With authorized workload-cluster access, run
kubectl describe pvc <claim> -n <namespace>and inspect the consuming Pod's scheduling events. Verify the class name, access mode and requested size. Read the class's binding mode if your privileges allow it. - Check any matching pre-provisioned PV for a static claim. For dynamic provisioning, verify the selected class maps to an assigned vSphere Storage Policy and that the vSphere Namespace has the required quota and access.
- Correlate CSI controller events with vCenter CNS tasks, policy eligibility, datastore free capacity and datastore accessibility from eligible hosts. Check CSI controller health and the controller reporting the error before changing placement or policy.
After correcting the failed dependency, verify the claim binds to the expected PV and the workload can schedule and use it. Preserve the original events before handling a failed or partly provisioned request.
Official references
- Storage Classes | Kubernetes
- Persistent Volumes | Kubernetes
- Error: storageclasses.storage.k8s.io is forbidden at the cluster scope
- PVC creations fails with error "CnsFault error: No compatible datastore found for storagePolicy"
- Error: "Failed to find any suitable datastore" during VCF 9.0 Deployment with "Timed out waiting for LB service update" with FLB Deployments
Full explanation
Troubleshooting VKS Networking and Persistent Storage
Study guide · 3V0-24.25
Read the full explanation