Interview Prep/Kubernetes/Deployments and rollouts

You need to move a stateless service from one cluster to another with zero downtime. How?

AdvancedScenarioDeployments and rollouts
Answer

Situation read → A cluster is being retired and traffic must shift gradually.

What I'd do →

  1. Deploy the same manifests to the new cluster through GitOps and verify with smoke tests
  2. Put both clusters behind a shared entry point such as Route 53 weighted records, a global load balancer or a CDN
  3. Start at 5% to the new cluster and watch error rates
  4. Increase in steps, keeping DNS TTL low (30-60s)
  5. Decommission the old cluster only after traffic is zero and connections drain

Why → Weighted DNS or global load balancing decouples cutover from the clusters themselves and makes rollback a weight change.

Interview tip → Mention external dependencies: secrets, databases, allowlists, and egress IPs.

All Kubernetes questions Roadmap: Kubernetes core

More on Deployments and rollouts