<p>I am using this command to remote debugging my kubernetes(v1.15.2) pod:</p>

<pre><code>kubectl port-forward soa-room-service-65986bddb4-6cz76 5011:5011
</code></pre>

<p>but when I connect the debugging port using my Intellij Idea,it shows:</p>

<pre><code>Forwarding from 127.0.0.1:5011 -&gt; 5011
Forwarding from [::1]:5011 -&gt; 5011
Handling connection for 5011
E0314 15:50:53.351183   41712 portforward.go:400] an error occurred forwarding 5011 -&gt; 5011: error forwarding port 5011 to pod 2d40e44288507f65a256ed7c591658cd1f5caf7f268feb34afda01be480de6c8, uid : unable to do port forwarding: socat not found.
Handling connection for 5011
E0314 15:51:19.031476   41712 portforward.go:400] an error occurred forwarding 5011 -&gt; 5011: error forwarding port 5011 to pod 2d40e44288507f65a256ed7c591658cd1f5caf7f268feb34afda01be480de6c8, uid : unable to do port forwarding: socat not found.
</code></pre>

<p>I search from internet and try to install socat in my local Mac OS Catalina:</p>

<pre><code>brew install socat
$ socat -h
socat by Gerhard Rieger and contributors - see www.dest-unreach.org
Usage:
socat [options] &lt;bi-address&gt; &lt;bi-address&gt;
   options:
      -V     print version and feature information to stdout, and exit
</code></pre>

<p>and also install socat in remote server's pod:</p>

<pre><code>RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    &amp;&amp; echo $TZ &gt; /etc/timezone \
    &amp;&amp; apk add --no-cache curl socat
</code></pre>

<p>when I debug,the error still remain,what should I do to fix this problem and enable by kubernetes pod remote debugging? Am I missing something?</p>

Dolphin
<p>It says socat isn't installed.Install socat on the host machines of the kubernetes nodes should resolve the problem.</p>
