<p>When I use Service with type <strong>ClusterIP</strong> and 2 PODS, the traffic is distributed accross the 2 PODs.</p>

<p>I found another Service type <strong>LoadBalancer</strong>. What is the difference between the 2 types of Services? How is <strong>LoadBalancer</strong> different from <strong>ClusterIP</strong> ? </p>

<p>Thanks</p>

Chandu
<p><strong>ClusterIP</strong> exposes the service on a cluster-internal IP. You cannot access this service from outside the cluster. </p>

<p><strong>LoadBalancer</strong> assigns an external IP to the service in addition to cluster-internal IP. The external IP can be used to reach the service from outside the cluster. For <strong>LoadBalancer</strong> to work, you need a controller which assigns these external IP. Most cloud providers support LoadBalancer services.</p>

<p>Observe the <strong>TYPE</strong> and <strong>EXTERNAL-IP</strong> columns in the below output. Only LoadBalancer service has an EXTERNAL-IP assigned. This IP can be used to connect to the service from outside the cluster. </p>

<pre><code># kubectl get svc
NAME                                TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                                                                                                              AGE
jaeger-collector                    ClusterIP      10.111.127.254   &lt;none&gt;         14267/TCP,14268/TCP,9411/TCP                                                                                         36d
jaeger-query                        LoadBalancer   10.106.69.234    10.92.70.150   80:32131/TCP
</code></pre>
