<p>I am running kubectl port-forward and sending a request to localhost:8081. I get the following error output:</p>
<pre><code>$ kubectl port-forward svc/pong-service 8081:8090 -n my-namespace
Forwarding from 127.0.0.1:8081 -&gt; 443
Forwarding from [::1]:8081 -&gt; 443
Handling connection for 8081
Handling connection for 8081
E0826 11:31:54.679791  412617 portforward.go:400] an error occurred forwarding 8081 -&gt; 443: error forwarding port 443 to pod 80485aa877fd1279190c5b4fbcb1efab1ccf4c7feb865c7ad3a289aeb8890d0f, uid : exit status 1: 2021/08/26 18:31:54 socat[368856] E connect(5, AF=2 127.0.0.1:443, 16): Connection refused
</code></pre>
<p><a href="https://stackoverflow.com/a/59636660/990376">This answer</a> leads me to believe my request is being forwarded to &lt;some pod&gt;:443 and &lt;some pod&gt; is not listening on port 443.</p>
<p>What is this string in the kubectl error output?
<code>80485aa877fd1279190c5b4fbcb1efab1ccf4c7feb865c7ad3a289aeb8890d0f</code></p>
<p>Can I use this string to find the name or uid of &lt;some pod&gt;?</p>

Hamomelette
<p>Your port forward command is incorrect, change it to:</p>
<p>kubectl port-forward svc/pong-service 8081:<em><strong>443</strong></em> -n my-namespace</p>
<p>If that was your typo, check with <code>kubectl get ep pong-service -n my-namespace</code> to ensure port 443 is indeed opened.</p>
