<p>I developed service which listen 0.0.0.0:8080. When I run app local it works and i can connect by browser. I push it in image to dockerhub. By this image I created pod and service in my mini kube cluster. By command &quot;minicube service  --url&quot; i get url like 192.168.49.2:30965, but I can't connect to this url. I tried with curl and with browser.</p>
<p>I tried connecting with curl and with browser.  In browser i got</p>
<blockquote>
<p>&quot;ERR_CONNECTION_TIME_OUT&quot;.</p>
</blockquote>
<p>Curl in shell get error too.</p>
<p>When I use command &quot;minicube service  --url&quot; i got this message</p>
<pre><code>! Executing &quot;docker container inspect minikube --format={{.State.Status}}&quot; took an unusually long time: 2.3171367s
* Restarting the docker service may improve performance.
http://192.168.49.2:30965
*  Starting tunnel for service &lt;name&gt;.
! Because you are using a Docker driver on windows, the terminal needs to be open to run it.
</code></pre>

<p>You would need, as <a href="https://stackoverflow.com/q/71175415/6309">illustrated here</a> to:</p>
<ul>
<li>create a <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="nofollow noreferrer">Deployment</a> and apply it</li>
<li>then expose the port:<br />
<code>kubectl expose -f laravel-deployment.yaml --port=8000 --target-port=8000</code></li>
<li>And port-forward it:<br />
<code>kubectl port-forward &lt;backend-deployment-xxxx-xxxx&gt; 8000:8000</code></li>
</ul>
<p>That last step would allow you to access http://localhost:8000, instead of relying on the dynamic minikube IP.</p>
