<p>Typically, if I have a remote server, I could access it using ssh, and VS Code gives a beautiful extension for editing and debugging codes for the remote server. But when I create pods in Kuberneters, I can't really ssh into the container and so I cannot edit the code inside the pod or machine. And the kuberneters plugin in VSCode does not really help because the plugin is used to deploy the code. So, I was wondering whether there is a way edit codes inside a pod using VSCode. </p>

<p>P.S. Alternatively if there is a way to ssh into a pod in a kuberneters, that will do too.</p>

user3086871
<p>If your requirement is &quot;kubectl edit xxx&quot; to use VSCode.</p>
<p>The solution is:</p>
<ul>
<li><p>For <strong>Linux,macos</strong>: <code>export EDITOR='code --wait'</code></p>
</li>
<li><p>For <strong>Windows</strong>: <code>set EDITOR=code --wait</code></p>
</li>
</ul>
