title: Routing traffic to kubernetes cluster
body: <p>I have a question related to Kubernetes networking. </p>
  
  <p>I have a microservice (say <em>numcruncherpod</em>) running in a pod which is serving requests via port <code>9000</code>, and I have created a corresponding Service of type <code>NodePort</code> (<em>numcrunchersvc</em>) and node port which this service is exposed is <code>30900</code>. </p>
  
  <p>My cluster has 3 nodes with following IPs: </p>
  
  <ol>
  <li>192.168.201.70, </li>
  <li>192.168.201.71</li>
  <li>192.168.201.72</li>
  </ol>
  
  <p>I will be routing the traffic to my cluster via reverse proxy (nginx). As I understand in nginx I need to specify IPs of all these cluster nodes to route the traffic to the cluster, is my understanding correct ? </p>
  
  <p>My worry is since nginx won't have knowledge of cluster it might not be a good judge to decide the cluster node to which the traffic should be sent to. So is there a better way to route the traffic to my kubernetes cluster ? </p>
  
  <p><em>PS: I am not running the cluster on any cloud platform.</em></p>