<p>I have a very simple springboot service deployed on minikube in windows 10.</p>

<p>C:\Software\Kubernetes>kubectl get deployments</p>

<pre><code>NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
myspringbootserver   1/1     1            1           68m
</code></pre>

<p>C:\Software\Kubernetes>kubectl get service</p>

<pre><code>NAME                 TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
kubernetes           ClusterIP   10.96.0.1        &lt;none&gt;        443/TCP          49d
myspringbootserver   NodePort    10.110.179.207   &lt;none&gt;        9080:30451/TCP   6m50s
</code></pre>

<p>C:\Software\Kubernetes>minikube service myspringbootserver --url</p>

<pre><code>http://192.168.99.101:30451
</code></pre>

<p>But when I try to hit the service from my chrome browser with url</p>

<pre><code>http://192.168.99.101:30451/MySpringBootServer/heartbeat
</code></pre>

<p>getting connection refused exception.Not sure what is going wrong.Could anyone help to resolve it please?</p>

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

Jaanesh
<p>Can you <code>curl</code> or <code>wget</code>  using the IP address of the pod?</p>
<p>For example <code>kubectl exec -it podname -- curl http://podip:9080/MySpringBootServer/heartbeat</code></p>
<p>if not, ensure the path is correct</p>
<p>if yes, make sure the pod exists as an endpoint of the service</p>
<p><code>kubectl get endpoints myspringbootserver</code></p>
<p>there is a good debugging document regarding services here:</p>
<p><a href="https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/#debugging-services" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application/#debugging-services</a></p>
