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 →
- Deploy the same manifests to the new cluster through GitOps and verify with smoke tests
- Put both clusters behind a shared entry point such as Route 53 weighted records, a global load balancer or a CDN
- Start at 5% to the new cluster and watch error rates
- Increase in steps, keeping DNS TTL low (30-60s)
- 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.
More on Deployments and rollouts
You applied a new image tag and the rollout seems stuck at "1 out of 3 new replicas have been updated". What do you check first?BeginnerHow do you roll back a bad release and verify you are back on the previous version?BeginnerA rollout must never reduce capacity below current replicas. How do you configure the strategy?IntermediateYou need a blue/green deployment without a service mesh. How do you do it with plain Kubernetes?IntermediateHow would you do a canary release with only Deployments and a Service?IntermediateWhat is the difference between Recreate and RollingUpdate strategies and when would you pick Recreate?Beginner