title: How to expose the Kubernetes pod to the public internet using Azure container service
body: <p>I'm trying to run .NET Core 2 Docker images in Kubernetes using Azure Container Service and Azure Container Registry.</p>
  
  <p>I have successfully created a pod &amp; is running perfectly. Later I deployed a service using command <code>kubectl expose deployment depl-name --type=LoadBalancer --port=8086 --target-port=8086</code> &amp; I checked service details using command <code>kubectl get services</code> but the external IP exposed by Azure is not working at all. I tried to ping that IP as well but it says request timeout. I can see, application/port everything is up &amp; okay. </p>
  
  <p>Please check snaps following:</p>
  
  <p><a href="https://i.stack.imgur.com/rWBRz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rWBRz.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/orbrV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/orbrV.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/81MLZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/81MLZ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Iqepm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Iqepm.png" alt="enter image description here"></a></p>
  
  <p>I do not follow why the public IP exposed by Azure container service does not work even when an application is running without errors on kubernetes cluster. Please let me know if anything has gone wrong. </p>
  
  <p>Thanks,</p>