Someone deleted a namespace and the database PVs and their EBS volumes were deleted with it.
AdvancedTroubleshootingStorage and volumes
Answer
Likely causes → The StorageClass had reclaimPolicy: Delete (the default for dynamically provisioned volumes), so deleting the PVC deleted the PV and the cloud disk.
Diagnose →
kubectl get sc -o custom-columns=NAME:.metadata.name,RECLAIM:.reclaimPolicy
aws ec2 describe-snapshots --owner-ids self --filters Name=tag:kubernetes.io/created-for/pvc/name,Values=data-db-0
Fix → Restore from the latest snapshot or Velero backup into new PVCs. For surviving volumes, switch reclaim policy now:
kubectl patch pv <pv> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
Prevent → Retain StorageClass for stateful data, scheduled snapshots, RBAC that limits namespace deletion, and an admission policy blocking deletes of protected namespaces.
More on Storage and volumes
A PVC is `Pending` with `no persistent volumes available for this claim and no storage class is set`.BeginnerA 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`.Intermediate