Interview Prep/SRE & Reliability/Backups, DR & Runbook Automation

After restoring a namespace into the DR cluster with Velero, PVCs stay `Pending`.

AdvancedTroubleshootingBackups, DR & Runbook Automation
Answer

Likely causes → The StorageClass referenced by the PVCs does not exist in the DR cluster (different name or CSI driver), or snapshots cannot be restored across regions without copying them first.

Diagnose →

kubectl get pvc -n shop
kubectl describe pvc -n shop data-postgres-0 | grep -A5 Events
kubectl get storageclass

Fix → Use Velero's storage class mapping (a ConfigMap for the change-storage-class restore item action) to map old to new classes, and copy snapshots to the DR region, or use file-system backups stored in object storage replicated across regions.

Prevent → Keep StorageClass names consistent across clusters and include cross-region restore in DR drills.

All SRE & Reliability questions Roadmap: Backup & disaster recovery

More on Backups, DR & Runbook Automation