A PVC in Pending state means Kubernetes couldn’t match it with an available PV.
Steps to Fix:
- Check PVC status:
kubectl get pvc - Describe the PVC to see errors:
kubectl describe pvc <pvc-name> - Check storage class:
- Is the correct provisioner defined?
- Is the availability zone supported (especially on AWS/GCP)?
Resolution:
Either:
- Create a matching
PersistentVolumemanually - Fix the
StorageClassor ensure dynamic provisioning works