<p>I'm just new with <code>Kubernetes</code>, I'm using <code>OpenStack</code> and I would like to create a load balancer to access my <code>NodeJs</code> server running on 3 pods. I get a pending loop when my load balancer try to get its public ip. I'm using <code>kubeadm</code> with <code>calico</code>.</p>

<p><a href="https://i.stack.imgur.com/YmaTV.png" rel="nofollow noreferrer">Screen: Pending External IP</a></p>

<p>This is a workaround method. You can mention the external IP:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>apiVersion: v1
kind: Service
metadata:
  name: node-js
  labels:
    name: node-js
spec:
  type: LoadBalancer
  externalIPs:
  - 10.240.0.4
  ports:
  - port: 80
    targetPort: 80
    nodePort: 30000
  selector:
    name: node-js</code></pre>
</div>
</div>
</p>
