<p>I am using <a href="https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster" rel="nofollow noreferrer">here</a> to create a new AKS cluster.  This has worked fine, however, when I look at the cluster I have noticed there is no External-IP (it shows )</p>
<p>How do I add an external IP address so that I can access the cluster externally?</p>
<p>I am using AKS within Azure</p>
<p>Paul</p>

<p>kubectl apply -f {name of this file}.yml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: example-service
spec:
  selector:
    app: example
  ports:
    - port: 8765
      targetPort: 9376
  type: LoadBalancer
</code></pre>
<p>From <a href="https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/" rel="noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/</a></p>
<p>This will create a load balancer that has an external ip address. You can specify one if you have a static IP as well.</p>
