<p>I am trying to host my first dotnet core application locally on Kubernetes. </p>

<p>Everything is working fine <strong>but when I am trying to create service using z_service.yml file it doesn't expose port 8099 for accessing it externally in browser</strong>.</p>

<pre><code>$&gt; kubectl apply -f .\z_service.yml
service/amazing-app-service created
</code></pre>

<p>However if I run <code>$&gt; kubectl port-forward amazing-app 8099:80</code> command then it works and I can access the web application in browser with <a href="http://localhost:8099/" rel="nofollow noreferrer">http://localhost:8099/</a></p>

<p>this is how services dashboard looks like</p>

<p><a href="https://i.stack.imgur.com/yJhju.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yJhju.png" alt="enter image description here"></a></p>

<p>and the services status</p>

<p><a href="https://i.stack.imgur.com/UnxLX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UnxLX.png" alt="enter image description here"></a></p>

<p>Am I missing any configuration here?</p>

Kundan
<p>As I see it's <code>NodePort</code> for your service <code>amazing-app-service</code>. When you want to expose the service to the Internet. You should use the <code>LoadBalancer</code> type for the service. Just like:</p>

<pre><code>type: LoadBalancer
</code></pre>
