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 →
- Build the new cluster from the same Terraform and bootstrap add-ons with GitOps, so it matches the old one exactly.
- Register it with Argo CD and deploy the same apps (an ApplicationSet with a cluster generator makes this one line).
- Handle stateful pieces: PVs via Velero backup and restore, or better, move state to managed services first.
- Shift traffic with weighted DNS or a global load balancer, service by service.
- 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.
More on Migrations
Migrate an application from EC2 to EKS with zero downtime. Walk me through it.AdvancedMigrate a database from on-prem MySQL to Amazon RDS with minimal downtime. How?AdvancedYou need to move Terraform state from local files to an S3 backend. How?BeginnerMigrate CI from Jenkins to GitHub Actions for 80 repositories. How do you plan it?IntermediateUpgrade an EKS cluster from 1.30 to 1.31 in production. What's your process?IntermediateMove from a monolith to microservices. What's the DevOps side of the migration?Advanced