<p>I have pod and its purpose is to take the incoming data and write it to the host volume. I'm running this pod in all the minions.</p>

<p>Now when i setup NodePort service to this pods, traffic will go to 1 pod at a time. </p>

<p>But how do i send request to all this pods in different minions? How to i bypass the load-balancing here? I want that data to be available in all the minions host volume.</p>

<p>A service uses a selector to identify the list of pods to proxy to (if they're in the Ready state). You could simply ask for the same list of pods with a GET request:</p>

<pre><code>$ curl -G "$MASTER/api/v1/namespaces/$NAMESPACE/pods?labelSelector=$KEY=$VALUE"
</code></pre>

<p>And then manually send your request to each of the pod <code>ip:port</code> endpoints. If you need to be able to send the request from outside the cluster network, you could create a proxy pod (exposed to the external network through the standard means). The proxy pod could watch for pods with your label (similar to above), and forward any requests it receives to the list of ready pods.</p>

<p>A similar effect could be achieved using <code>hostPort</code> and forwarding to nodes, but the use of hostPort is discourage (see <a href="http://kubernetes.io/docs/user-guide/config-best-practices/#services" rel="nofollow">best practices</a>).</p>
