Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

How do you migrate workloads between namespaces?

IntermediateScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → Reorganising.

What I'd do →

  1. Export YAML and clean namespace and uid fields
  2. Re-apply in the new namespace
  3. Copy Secrets and ConfigMaps
  4. Move data with a snapshot-restored PVC
  5. Shift traffic and delete old

Why → There is no rename, only recreate.

Interview tip → Mention Velero namespace mapping.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents