A PVC is `Pending` with `no persistent volumes available for this claim and no storage class is set`.
BeginnerTroubleshootingStorage and volumes
Answer
Likely causes → The PVC has no storageClassName and the cluster has no default StorageClass, so it waits for a manually created PV that never comes.
Diagnose →
kubectl get storageclass # look for "(default)"
kubectl get pvc data -o jsonpath='{.spec.storageClassName}{"\n"}'
Fix → Mark a class as default, or set storageClassName on the PVC:
kubectl patch storageclass gp3 -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Existing Pending PVCs without a class get the default retroactively on recent versions; otherwise recreate them.
Prevent → Exactly one default StorageClass, created at cluster bootstrap.
More on Storage and volumes
A PVC sits `Pending` with event `waiting for first consumer to be created before binding`. Is something broken?BeginnerA PVC is stuck with `waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator`.IntermediateA Pod is stuck `ContainerCreating` with `Multi-Attach error for volume "pvc-3f1c..." Volume is already exclusively attached to one node and can't be attached to another`.IntermediateA Deployment with one replica and an RWO PVC gets `Multi-Attach error` on every rollout.BeginnerVolume attach fails with `AttachVolume.Attach failed for volume "pvc-..." : rpc error: code = Internal desc = Could not attach volume ... UnauthorizedOperation: You are not authorized to perform this operation`.IntermediateA Pod fails with `MountVolume.MountDevice failed for volume "pvc-..." : rpc error: code = Internal desc = ... mount failed: exit status 32 ... wrong fs type, bad option, bad superblock`.Advanced