Interview Prep/Kubernetes/Upgrades, Backup & Disaster Recovery

How do you restore a single namespace or accidentally deleted resource?

IntermediateProductionUpgrades, Backup & Disaster Recovery
Answer

With GitOps, revert the Git commit and let the controller recreate it; for PVs restore from snapshot. With Velero, velero restore create --from-backup daily-2026-11-08 --include-namespaces shop, mapping to a new namespace first (--namespace-mappings) to compare before replacing. Check that finalizers or owner references do not recreate stale state.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, Backup & Disaster Recovery