Migrate an app from one Kubernetes cluster to a new cluster. How do you keep it safe?

IntermediateScenarioMigrations
Answer

Situation read → Blue-green at the cluster level: build the new one, deploy everything, shift traffic, drain the old.

What I'd do →

  1. Build the new cluster from the same Terraform and bootstrap add-ons with GitOps, so it matches the old one exactly.
  2. Register it with Argo CD and deploy the same apps (an ApplicationSet with a cluster generator makes this one line).
  3. Handle stateful pieces: PVs via Velero backup and restore, or better, move state to managed services first.
  4. Shift traffic with weighted DNS or a global load balancer, service by service.
  5. Watch dependencies that whitelist IPs: the new cluster's NAT IPs may need adding to partner firewalls or RDS security groups.

Why → Cluster-level blue-green also makes major Kubernetes upgrades safer than in-place.

Interview tip → NAT egress IP changes are the gotcha that breaks third-party integrations.

All Real-World Interview questions Roadmap: Interview readiness

More on Migrations