<p>I installed WSL2 on Windows10 followed these instructions: <a href="https://learn.microsoft.com/en-us/windows/wsl/install-win10" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/windows/wsl/install-win10</a>, manual install.</p>
<p>All commands worked for me however at the end when I open wsl terminal and type <code>kubectl</code> I have response <code>-sh: kubectl: not found</code>.</p>
<p>I installed Ubuntu 20.04 LTS and when I open the Ubuntu terminal then kubectl works there.</p>
<p>Powershell says it's installed correctly:</p>
<pre><code>PS C:\Users\michu&gt; wsl --list --verbose
  NAME                   STATE           VERSION
 *docker-desktop         Running         2
  docker-desktop-data    Running         2
  Ubuntu-20.04           Running         2
</code></pre>
<p>How can I make docker/kubectl works in the WSL terminal as well?<br />
Shouldn't it work right after all the instruction steps?</p>

Michu93
<p>The <strong>answer</strong> was in one of the comments, clarifying it so it will be useful to others as well</p>
<pre><code># run this command in order to enable kubectl in your wsl terminal
wsl --setdefault Ubuntu-20.04
</code></pre>
