<p>I'm using Docker For Desktop with the built-in Kubernetes cluster. I have installed a <code>Pod</code> that serves resources over HTTP, but I'm not sure how to access it using my browser. I have the following <code>ServiceSpec</code> that correctly routes traffic to the <code>Pod</code>:</p>

<pre><code>spec:
  clusterIP: 10.99.132.220
  externalTrafficPolicy: Cluster
  ports:
  - name: myport
    nodePort: 31534
    port: 8037
    protocol: TCP
    targetPort: 80
  type: LoadBalancer
</code></pre>

<p>And I can see it set up when I query it with <code>kubectl</code>:</p>

<pre><code>$ kubectl get service
NAME           TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
myservice   LoadBalancer   10.99.132.220   localhost     8037:31534/TCP   1h
</code></pre>

<p>How do I reach this service using my browser?</p>

<p>That service will be available in your browser at <a href="http://localhost:8037" rel="noreferrer">http://localhost:8037</a></p>

<p>Note that the port <code>8037</code> corresponds to the <code>port</code> property on the <code>ServiceSpec</code> object.</p>

<p>If you are unable to reach the service at that URL, then it could be one of several things, including but not limited to:</p>

<ul>
<li>There is another <code>Service</code> in your cluster that has claimed that port. Either delete the other <code>Service</code>, or change the <code>port</code> property to an unclaimed port.</li>
<li>Your <code>Pod</code> is not running and ready. Check <code>kubectl get pods</code>.</li>
</ul>
