Interview Prep/Kubernetes/Services, Ingress and DNS

Explain how you would migrate from ingress-nginx to Gateway API with no downtime.

AdvancedScenarioServices, Ingress and DNS
Answer

Situation read → The community ingress-nginx project is being retired and the platform team wants to move on.

What I'd do →

  1. Install a Gateway API implementation (Envoy Gateway, Cilium, or a cloud controller) alongside ingress-nginx
  2. Translate Ingress resources to Gateway and HTTPRoute objects (tools like ingress2gateway help)
  3. Create the new Gateway with its own LB and test with Host headers
  4. Shift DNS weight gradually from the old LB to the new one
  5. Remove ingress-nginx after traffic is drained and rollback window passes

Why → Running both in parallel with separate load balancers turns the cutover into a DNS change that can be reversed.

Interview tip → Show awareness that annotations do not translate one-to-one and need review.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Ingress and DNS