Write the commands to find why a PVC is stuck Pending on EKS.
AdvancedProductionRapid-Fire Commands
Answer
kubectl describe pvc data-db-0 -n shop # events: waiting for first consumer, provisioning failed
kubectl get sc # does the class exist? provisioner ebs.csi.aws.com?
kubectl -n kube-system get pods -l app=ebs-csi-controller
kubectl -n kube-system logs deploy/ebs-csi-controller -c csi-provisioner --tail=50
Typical causes: missing IAM role for the driver, wrong StorageClass name, WaitForFirstConsumer with no Pod yet, or zone mismatch.
More on Rapid-Fire Commands
How do you list all Pods across namespaces with node and IP?BeginnerHow do you find why a Pod is Pending or not starting?BeginnerHow do you scale a Deployment or StatefulSet imperatively?BeginnerHow do you get a shell into a running container and run a one-off Pod?BeginnerHow do you see all resources and their short names?BeginnerHow do you generate YAML for a resource without creating it?Beginner