A PersistentVolumeClaim called data-postgres-0 has been in Pending for 14 minutes, the StatefulSet pod that needs it is Pending too, and kubectl describe pvc keeps printing the same line:
Normal ExternalProvisioning 2m (x58 over 14m) persistentvolume-controller
waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com"
or manually created by system administrator
That message is the PVC binding process caught halfway. Kubernetes accepted the claim, matched it to a StorageClass, handed the job to the provisioner named in that class, and is now waiting for a PersistentVolume to appear. Nothing appeared. The fix is usually quick once you know which link in that chain broke; the more valuable work is making sure the next team to deploy a database does not hit the same wall.
What the Pending event is really telling you
Four terms carry the whole story, and the event only makes sense once they are straight.
PersistentVolumeClaim (PVC): a request for storage made by a workload: a size, an access mode such as ReadWriteOnce, and usually a StorageClass name.
PersistentVolume (PV): the cluster object that represents an actual piece of storage, such as an EBS volume, a GCE persistent disk or an NFS export. A PVC becomes Bound when it is paired with exactly one PV.
StorageClass: a template that tells Kubernetes which provisioner creates volumes, with which parameters (disk type, IOPS, encryption), and when binding happens.
Provisioner: the component that talks to the storage backend. Today this is almost always a CSI driver, running as a controller Deployment plus a node DaemonSet, identified by a name such as ebs.csi.aws.com or pd.csi.storage.gke.io.
Pending can carry three different messages, and they point in different directions. "waiting for first consumer to be created before binding" is normal when the StorageClass uses volumeBindingMode: WaitForFirstConsumer: the volume is created only after a pod using the claim is scheduled, so the zone matches.
If no pod references the claim yet, that state is expected and lasts forever. "no persistent volumes available for this claim and no storage class is set" means static provisioning with no matching PV and no class to fall back on. And "waiting for a volume to be created, either by external provisioner" means dynamic provisioning was requested from a named driver that has not delivered. This guide is about the third.
Six causes behind waiting for a volume, most common first
The message names the provisioner. Start there, because in most cases the named driver is either absent, broken or lacks permission.
- The CSI driver is not installed. The classic case is Amazon EKS. Since Kubernetes 1.23 on EKS, the legacy in-tree EBS plugin is migrated to the EBS CSI driver, so even the old
gp2class with provisionerkubernetes.io/aws-ebsneeds the Amazon EBS CSI driver add-on. Clusters created without it produce exactly the event above, namingebs.csi.aws.com. - The driver runs but cannot call the cloud API. The controller needs permissions to create and attach volumes: an IAM role through IRSA or EKS Pod Identity on AWS, a service account with the right roles on GCP, a managed identity on Azure. Missing permissions show up as errors in the provisioner sidecar log, not on the PVC.
- The StorageClass names a provisioner from another cluster. Manifests copied between environments often carry a class that points to
pd.csi.storage.gke.ioon an AKS cluster, or to a local-path provisioner that only existed on a developer's k3s setup. - The access mode is impossible for the backend. Block storage such as EBS, Azure Disk and GCE persistent disk supports ReadWriteOnce. A claim asking for ReadWriteMany against those classes cannot be satisfied; it needs a file-based backend such as EFS, Azure Files or Filestore.
- Topology rules exclude every zone.
allowedTopologieson the class, or node affinity on the pod, can leave no zone where a volume may be created, or create the volume in a zone where the pod cannot run. - A quota stops creation. A namespace ResourceQuota on
requests.storageor on the number of PVCs, or a cloud account limit on volumes or total storage, makes the provisioner fail quietly from the claim's point of view. With a 100Girequests.storagequota and four existing 20Gi claims, a fifth claim for 30Gi needs 110Gi in total and is refused, even though each claim on its own looks modest.
Causes 1 and 2 account for most real incidents in managed clusters, which is why the diagnosis below checks them first.
A ten-minute diagnosis, in a fixed order
Running the checks in the same order every time keeps you from patching symptoms. Each step either clears a cause or points at it.
- Read the whole claim, including the class name and requested access mode.
- Confirm the StorageClass exists and note its provisioner and binding mode.
- Check that pods for a driver with that exact name are running in the cluster.
- Read the provisioner sidecar log for the claim's name; permission and quota errors appear there.
- Compare the requested access mode with what the backend supports.
- If the class uses WaitForFirstConsumer, confirm a pod actually references the claim and has been scheduled.
kubectl describe pvc data-postgres-0 -n db
kubectl get storageclass
kubectl get csidrivers
kubectl get pods -n kube-system | grep -i csi
kubectl logs -n kube-system deploy/ebs-csi-controller -c csi-provisioner --tail=100
kubectl get events -n db --sort-by=.lastTimestamp | tail -20
kubectl get csidrivers is the fastest single check. If the name in the event is not in that list, cause 1 is confirmed and no amount of editing the claim will help. If the driver is listed and its pods are running, the sidecar log usually names the problem in plain text: an UnauthorizedOperation, an exceeded quota or an unsupported parameter.
Install the missing driver through the managed add-on mechanism where one exists, grant its controller the documented permissions, and the stuck claim usually binds without being recreated. The external provisioner retries on its own with exponential backoff, by default starting at 1 second and capped at 5 minutes, so allow up to 5 minutes after the fix before assuming something else is wrong. On a typical EBS gp3 class the new volume arrives with the baseline of 3,000 IOPS and 125 MiB/s unless the class sets other parameters.
Mistakes that turn a five-minute fix into an outage
Under pressure, people reach for changes that make the immediate symptom go away and create a worse one.
- Deleting the PVC of a StatefulSet to "reset" it. For a new claim this is harmless; for a claim that was previously bound with a
Deletereclaim policy, it can destroy the data the pod was waiting for. - Switching the class to
volumeBindingMode: Immediateto get rid of "waiting for first consumer". The volume then gets created in an arbitrary zone, and the pod later fails to schedule because no node in that zone fits. - Editing
storageClassNameon an existing claim. The field is immutable after creation, so the edit is rejected; the claim has to be recreated. - Hand-crafting a PV to satisfy the claim without matching size, access mode, class and
claimRef. The claim stays Pending, and the orphan PV confuses the next person. - Marking a second StorageClass as default. With two defaults, behaviour depends on version and admission settings, and claims without a class can land on the wrong backend.
- Removing finalizers to force-delete stuck objects. It hides the symptom and can leave cloud volumes that keep billing with no Kubernetes object pointing at them.
Most of these come from treating the PVC as the problem. The claim is only the request; the fault sits with whatever should answer it.
Keeping it from coming back
The long game is to make the failure impossible or at least loud. A few guardrails cover most of it.
Manage CSI drivers as cluster infrastructure, through the cloud provider's add-on system or your GitOps repository, with versions pinned and upgraded deliberately. A driver installed by hand during an incident is a driver nobody upgrades.
Keep exactly one default StorageClass per cluster and document it next to the cluster's other baseline objects. Add an admission policy, with Kyverno or OPA Gatekeeper, that rejects claims referencing a class that does not exist or asking for ReadWriteMany on a block-only class. Rejection at apply time beats a Pending claim discovered by a failing pod.
Alert on duration. kube-state-metrics exposes kube_persistentvolumeclaim_status_phase with a phase label, so a rule that fires when a claim has been Pending for more than 10 minutes catches the problem before anyone opens a ticket. Exclude claims in WaitForFirstConsumer classes that have no consumer yet, or the alert will train people to ignore it.
Where this is heading makes the guardrails easier. In-tree volume plugins are almost entirely gone from upstream Kubernetes, so every new cluster depends on CSI drivers and the "driver missing" case becomes a configuration check rather than a mystery. VolumeAttributesClass, now generally available upstream since Kubernetes 1.34, lets teams change performance settings such as IOPS on a bound volume without migrating data, which removes one common reason for recreating claims.
And platform teams in Lisbon, Porto and elsewhere increasingly ship storage as a paved road: a small set of named classes, policies and dashboards that application teams consume without needing to know which provisioner sits behind them. When that road exists, a Pending claim stops being an incident and becomes an admission error with a clear message.