Kubernetes
PVC
vSphere
Volume Provisioning
CSI Driver

PVC Events waiting for a volume to be created, either by external provisioner csi.vsphere.vmware.com or manually created by system administrator

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

Introduction

This PVC event means Kubernetes accepted your claim but no matching volume has been provisioned yet by the vSphere CSI driver. The issue is typically in storage class configuration, CSI controller health, topology, or vSphere permissions. The fastest diagnosis path starts with Kubernetes objects, then CSI logs, then vSphere policy checks.

Core Sections

1. What the event actually tells you

The event indicates provisioning is pending, not that your application pod is broken. Kubernetes is waiting for csi.vsphere.vmware.com to create a PersistentVolume that satisfies claim requirements.

Important implication:

  • restarting workload pods will not fix this
  • storage control plane path must be debugged first

Treat it as storage provisioning incident, not deployment incident.

2. Validate PVC and StorageClass first

Start with claim and class inspection.

bash
1kubectl -n app get pvc my-claim
2kubectl -n app describe pvc my-claim
3kubectl get storageclass
4kubectl get storageclass my-vsphere-sc -o yaml

Check for:

  • incorrect provisioner name
  • invalid storage policy parameter
  • unsupported access mode
  • wrong volumeBindingMode

If provisioner does not match CSI driver, claim remains pending indefinitely.

3. Confirm CSI controller and provisioner health

Inspect CSI system components.

bash
kubectl -n kube-system get pods | rg vsphere
kubectl -n kube-system logs deploy/vsphere-csi-controller -c vsphere-csi-controller --tail=200
kubectl -n kube-system logs deploy/vsphere-csi-controller -c csi-provisioner --tail=200

Typical errors include permission denied, datastore not found, policy incompatibility, and topology mismatch.

Controller logs often provide exact root-cause string; do not skip them.

4. Check vSphere prerequisites and permissions

vSphere CSI identity needs appropriate privileges and datastore visibility. Missing rights can produce endless pending claims.

Validate:

  • datastore available to target cluster hosts
  • storage policy exists and is compatible
  • CSI vCenter credentials valid
  • node VM tags align with topology requirements

Storage class can look correct in Kubernetes while failing due to vSphere-side constraints.

5. Understand binding mode behavior

WaitForFirstConsumer delays volume provisioning until a pod is scheduled. This can look like a provisioning failure if no consuming pod exists yet.

Cross-check scheduling state:

bash
kubectl -n app get pod -o wide
kubectl -n app describe pod <pod-name>

If pod cannot be scheduled due to node selectors or taints, PVC may also remain pending.

6. Use a minimal smoke-test PVC

Create a tiny test claim to isolate workload complexity.

yaml
1apiVersion: v1
2kind: PersistentVolumeClaim
3metadata:
4  name: pvc-smoke-test
5  namespace: app
6spec:
7  accessModes:
8    - ReadWriteOnce
9  resources:
10    requests:
11      storage: 1Gi
12  storageClassName: my-vsphere-sc
bash
kubectl apply -f pvc-smoke-test.yaml
kubectl -n app describe pvc pvc-smoke-test

If smoke test fails the same way, issue is infrastructure or storage class, not app manifest details.

7. Static PV fallback during incident mitigation

If dynamic provisioning is blocked and outage is active, manual PV creation can be temporary mitigation.

Requirements must match PVC exactly:

  • capacity
  • access mode
  • storage class
  • binding expectations

Manual fallback is operationally expensive but useful during high-priority recovery.

8. Post-incident hardening

After resolution, add controls to catch recurrence early:

  • synthetic PVC provisioning health check
  • alert on sustained Pending PVC count
  • known-good storage class templates in version control
  • documented CSI upgrade procedure and rollback plan

Storage incidents often repeat unless preventive controls are established.

Common Pitfalls

  • Restarting app pods instead of debugging provisioning path.
  • Using storage class with incorrect provisioner name.
  • Ignoring CSI controller logs and guessing causes.
  • Overlooking WaitForFirstConsumer and scheduler interactions.
  • Assuming Kubernetes object correctness guarantees vSphere policy compatibility.

Summary

  • This PVC event indicates pending volume provisioning via vSphere CSI.
  • Diagnose in order: PVC and storage class, CSI logs, then vSphere permissions and policy.
  • Verify scheduling and binding-mode interactions before concluding driver failure.
  • Use smoke-test claims to isolate root cause quickly.
  • Add synthetic checks and alerting to prevent repeated storage outages.

Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design