title: Kubernetes (docker-desktop) with multiple LoadBalancer services
body: <p>Is it true that I cannot have two LoadBalancer services on a docker-desktop cluster (osx), because they would both use <code>localhost</code> (and all ports are forwarded)?</p>
  
  <p>I created an example and the latter service is never assigned an external IP address but stays in state <code>pending</code>. However, the former is accessible on localhost.</p>
  
  <pre><code>&gt; kubectl get all     
  NAME                                       READY   STATUS    RESTARTS   AGE
  pod/whoami-deployment-9f9c86c4f-l5lkj      1/1     Running   0          28s
  pod/whoareyou-deployment-b896ddb9c-lncdm   1/1     Running   0          27s
  pod/whoareyou-deployment-b896ddb9c-s72sc   1/1     Running   0          27s
  
  NAME                        TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
  service/kubernetes          ClusterIP      10.96.0.1       &lt;none&gt;        443/TCP        95s
  service/whoami-service      LoadBalancer   10.97.171.139   localhost     80:30024/TCP   27s
  service/whoareyou-service   LoadBalancer   10.97.171.204   &lt;pending&gt;     80:32083/TCP   27s
  
  NAME                                   READY   UP-TO-DATE   AVAILABLE   AGE
  deployment.apps/whoami-deployment      1/1     1            1           28s
  deployment.apps/whoareyou-deployment   2/2     2            2           27s
  
  NAME                                             DESIRED   CURRENT   READY   AGE
  replicaset.apps/whoami-deployment-9f9c86c4f      1         1         1       28s
  replicaset.apps/whoareyou-deployment-b896ddb9c   2         2         2       27s
  </code></pre>
  
  <p>Detailed state fo whoareyou-service:</p>
  
  <pre><code>kubectl describe service whoareyou-service
  Name:                     whoareyou-service
  Namespace:                default
  Labels:                   &lt;none&gt;
  Annotations:              kubectl.kubernetes.io/last-applied-configuration:
                              {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"name":"whoareyou-service","namespace":"default"},"spec":{"ports":[{"name...
  Selector:                 app=whoareyou
  Type:                     LoadBalancer
  IP:                       10.106.5.8
  Port:                     http  80/TCP
  TargetPort:               80/TCP
  NodePort:                 http  30333/TCP
  Endpoints:                10.1.0.209:80,10.1.0.210:80
  Session Affinity:         None
  External Traffic Policy:  Cluster
  Events:                   &lt;none&gt;
  </code></pre>