<p>I created a kubernetes cluster on my debian 9 machine using <a href="https://kind.sigs.k8s.io/" rel="nofollow noreferrer">kind</a>.<br>
Which apparently works because I can run <code>kubectl cluster-info</code> with valid output.</p>

<p>Now I wanted to fool around with the tutorial on <a href="https://kubernetes.io/docs/tutorials/kubernetes-basics/#kubernetes-basics-modules" rel="nofollow noreferrer">Learn Kubernetes Basics</a> site.</p>

<p>I have already deployed the app </p>

<pre><code>kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
</code></pre>

<p>and started the <code>kubectl proxy</code>.  </p>

<p>Output of <code>kubectl get deployments</code></p>

<pre><code>NAME                  READY   UP-TO-DATE   AVAILABLE   AGE
kubernetes-bootcamp   1/1     1            1           17m
</code></pre>

<p>My problem now is: when I try to see the output of the application using <code>curl</code> I get</p>

<blockquote>
  <p>Error trying to reach service: 'dial tcp 10.244.0.5:80: connect: connection refused'</p>
</blockquote>

<p>My commands</p>

<pre><code>export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/
</code></pre>

<p>For the sake of completeness I can run <code>curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/</code> and I get valid output.</p>

Norbert Bartko
<p>Try add :8080 after the <strong>$POD_NAME</strong></p>
<pre><code> curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME:8080/proxy/
</code></pre>
