Interview Prep/Kubernetes/Services, Ingress and DNS

NodePort traffic works on one node but not others. What could be wrong?

IntermediateScenarioServices, Ingress and DNS
Answer

Situation read → Service of type NodePort answers on node A's IP but times out on node B.

What I'd do →

  1. Check externalTrafficPolicy (Local only answers on nodes that host a pod)
  2. Check the node security group or firewall allows the 30000-32767 range
  3. kubectl get pods -o wide to see which nodes host pods
  4. Check kube-proxy health on node B
  5. Use externalTrafficPolicy: Cluster if you want any node to answer

Why → With Local, nodes without a local endpoint drop traffic to preserve the client IP.

Interview tip → Mention health checks used by cloud LBs rely on this behaviour.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Ingress and DNS