<p>I noticed when accessing the Kubernetes Service, the host ip is ignored by the kubernetes. </p>

<p>For example: I have 3 kubernetes workers, <code>hostIP1</code>, <code>hostIP2</code> and <code>hostIP3</code>, on each worker, i create a pod, with label: <code>app = test</code>. In each pod, it just simple runs <code>python -m SimpleHTTPServer 32000</code>, I then create a service to expose port: <code>32000</code> so that it can be accessed outside the cluster. </p>

<p>But when I access <code>http://hostIP1:32000</code>, the traffic is actually routed to any of the hosts, <code>hostIP1</code>, <code>hostIP2</code> and <code>hostIP3</code></p>

<p>Is there a way to only let Kubernetes forward traffic to <code>hostIP1</code> when accessing <code>http://hostIP1:32000</code>?</p>

<p>Thanks</p>

Ping.Goblue
<p>You can't do that. If your pods have the same label, they are going to be selected by the same service, and every time you hit that service it is going to balance the load among the backends it has, which are your pods.</p>

<p>To do what you want, you have to create 3 different services, to point each service to its own backend.</p>
