<p>I am following this tutorial: <a href="https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/" rel="nofollow noreferrer">https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/</a> on mac osx</p>
<p>I have completed all of the steps</p>
<pre><code>hello-python-6c7b478cf5-hxfvb   1/1     Running   0          114s
hello-python-6c7b478cf5-rczp9   1/1     Running   0          114s
hello-python-6c7b478cf5-snww5   1/1     Running   0          114s
hello-python-6c7b478cf5-wr8gf   1/1     Running   0          114s
</code></pre>
<p>I cannot visit localhost:6000 on my browser. I get an error:</p>
<pre><code>The web page at http://localhost:6000/ might be temporarily down or it may have moved permanently to a new web address.
</code></pre>
<p>But I can curl:</p>
<pre><code>app git:(master) ✗  curl localhost:6000
Hello from Python!%
</code></pre>
<ul>
<li><p>Why is this happening?</p>
</li>
<li><p>How to fix it?</p>
</li>
</ul>

nz_21
<p>If you are running this demo application on minikube then minikube doesn't supports LB external IP. You can check pending status with this command : <code>kubectl get svc -o wide</code>.</p>
<p>Resolution :
The LoadBalancer service get a node port assigned too so you can access services via:
<code>$ minikube service my-loadbalancer-service-name</code> to open browser or add --url flag to output service URL to terminal. You should see something like:
<code>$ minikube service hello-python-service --url</code>
this command will give url output .</p>
