Is Kubernetes Networking Smart Enough to Route ClusterIP Requests to Local Pod

448 views Asked by At

I think the question has most of the information. If I have a Service that is a ClusterIP Service, and a Pod accesses that Service, since the load balancing is built into the routing table, are the routing rules smart enough to prefer traffic to the local Node? Is there a way to configure it so that the traffic does prefer (or even be forced) to go to the local Node?

Reasoning - I'm thinking about running a caching server as a DaemonSet, which makes sense if traffic is likely to go to a local Pod.

1

There are 1 answers

2
lgekman On BEST ANSWER

internalTrafficPolicy is probably what you are looking for.