<p>I am new to Docker and Kubernetes, and trying to deploy my ASP.Net Core 6.0 web application on Kubernetes with Docker image. I can see the service running with <code>type: NodePort</code> as in the last line of the screenshot <a href="https://i.stack.imgur.com/PsgTM.png" rel="nofollow noreferrer">1</a>, but I cannot access this port on my browser at all.</p>
<p><a href="https://i.stack.imgur.com/PsgTM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PsgTM.png" alt="enter image description here" /></a></p>
<p>I can also see the Docker container created by Kubernetes Pod running on Docker Desktop Windows application as in screenshot <a href="https://i.stack.imgur.com/cje91.png" rel="nofollow noreferrer">2</a>, but I don't know how to access my deployed application from the browser. Any suggestion or solution would be appreciated.</p>
<p><a href="https://i.stack.imgur.com/cje91.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cje91.png" alt="enter image description here" /></a></p>

edwp
<p>Seems to be you  need to expose the service , so that it will allow external traffic. In order to expose the service use : <code>kubectl expose deployment &lt;deployment&gt; --type=&quot;Loadbalancer&quot;--port=8080</code>, this will create an external IP.</p>
<p>Check the created external IP by using Kubectl get services  command.
If not visible, wait for a few minutes to get the service exposed. So, wait for a few minutes and check again the External IP will be visible .</p>
<p>Now access the service using <code>http://&lt;EXTERNAL_IP&gt;:8080</code>in the browser.</p>
<p>For more information Refer to this <a href="https://codelabs.developers.google.com/codelabs/cloud-kubernetes-aspnetcore#0" rel="nofollow noreferrer">Lab</a> on how to Deploy ASP.NET Core app on Kubernetes.</p>
