<p>I have started with kubernetes and followed this <a href="https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/" rel="nofollow noreferrer">link</a> to get the response as they mentioned. I followed the exact steps but when I am trying to open the port I get the following error:</p>

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

<p>How to solve this issue? I have tried by adding the IP address and port in the Browser proxy.</p>

<p>Can anyone help me on this?</p>

<p>Here is the service image: <a href="https://i.stack.imgur.com/J7e37.png" rel="nofollow noreferrer">my service image</a></p>

<p>List of pods: <a href="https://i.stack.imgur.com/EGKIi.png" rel="nofollow noreferrer">Kubectl Pods</a></p>

<p>List of kubectl deployments:<a href="https://i.stack.imgur.com/t1fXT.png" rel="nofollow noreferrer">Deployment List</a></p>

Kishan Jr
<p>I believe you're using the baremetal(simple laptop) to deploy your service.</p>

<p>If you have look at <code>my-service</code> it is in <code>pending</code> state and it is of type <code>LoadBalancer</code>. The type load balance is supported only for the cloud providers like aws,azure and google cloud. Hence you are not able to access anything.</p>

<p>I will suggest you to follow this tutorial <a href="https://blog.tekspace.io/exposing-pod-as-a-nodeport-service/" rel="nofollow noreferrer">here</a> which allow you to deploy nginx as a pod and deploy a service around that and export that service as nodeport (without load balancer) to be able to access from outside.</p>
