Interview Prep/Kubernetes/Storage and volumes

A 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`.

IntermediateTroubleshootingStorage and volumes
Answer

Likely causes → The CSI provisioner is not working: driver not installed, controller Pods crash-looping, or missing cloud permissions (EBS CSI without an IAM role via IRSA/Pod Identity).

Diagnose →

kubectl get pods -n kube-system -l app.kubernetes.io/name=aws-ebs-csi-driver
kubectl logs -n kube-system deploy/ebs-csi-controller -c csi-provisioner --tail=50
kubectl logs -n kube-system deploy/ebs-csi-controller -c ebs-plugin --tail=50 | grep -i -E 'denied|unauthorized'

Fix → Install the EBS CSI add-on with an IAM role that has AmazonEBSCSIDriverPolicy (and KMS permissions if volumes are encrypted with a CMK). Provisioning resumes automatically.

Prevent → Manage CSI drivers as EKS add-ons with their IAM roles in IaC; test PVC creation in the cluster smoke test.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Storage and volumes