<p>I’m k8s beginner, and struggling with below error.</p>

<pre><code>E0117 18:24:47.596238   53015 portforward.go:400]
an error occurred forwarding 9999 -&gt; 80: error forwarding port 80 to pod XXX,
uid : exit status 1: 2020/01/17 09:24:47 socat[840136] E connect(5, AF=2 127.0.0.1:80, 16): Connection refused
</code></pre>

<p>I don’t even know what the error stands for, needless to say for its cause. Does anyone know of which situation below error occurs?</p>

<p>This error is occuring while processing GCP's deployment manager tutorial according to tutorial project GCP provides.</p>

<p><a href="https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/examples/v2/gke" rel="nofollow noreferrer">https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/examples/v2/gke</a></p>

<p>Error occurs when typing this command.</p>

<pre><code>curl localhost:9999
</code></pre>

<p>Any ambiguous expression or extra information is required, please notify me.
Thanks in advance!</p>

Taruya
<p>The error is telling you, that there's nothing listening to port <strong>80</strong> inside the pod. You should check the pod state:</p>

<pre><code>kubectl get pods
</code></pre>

<p>It will also tell you which port(s) the pod (its containers) is listening to. </p>

<p>Maybe it has crashed. Also check the log of the pod:</p>

<pre><code>kubectl logs &lt;pod-name&gt;
</code></pre>

<p>Btw. Google's Deployment Manager is a very special kind of a tool. Google itself suggests to use Terraform instead. It's nevertheless part of their certification exams.</p>
