<p>I´m running windows 10 with WSL1 and ubuntu as distrib.
My windows version is Version 1903 (Build 18362.418)</p>

<p>I´m trying to connect to kubernetes using kubectl proxy within ubuntu WSL. I get a connection refused when trying to connect to the dashboard with my browser.</p>

<p><a href="https://i.stack.imgur.com/De2K7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/De2K7.png" alt="enter image description here"></a></p>

<p>I have checked in windows with netstat -a to see active connections. </p>

<p><a href="https://i.stack.imgur.com/l4YNh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l4YNh.png" alt="enter image description here"></a></p>

<p>If i run kubectl within the windows terminal i have no problem to connect to kubernetes, so the problem is only happening when i try to connect with ubuntu WSL1.</p>

<p>I have also tried to run the following command</p>

<pre><code>kubectl proxy --address='0.0.0.0' --port=8001 --accept-hosts='.*'
</code></pre>

<p>... but the connection is refused although i see that windows is listening to the port. Changing port to another port didn´t fix the proble. Disabling the firewall didnt´fix the problem as well.</p>

<p>Any idea ?</p>

<p>First thing to do would be to check if you able to safely talk to your cluster: (<code>kubectl get svc -n kube-system</code>, <code>kubectl cluster-info</code>)</p>

<p>If not check if <code>$HOME/.kube</code> folder was created. If not, run:
<code>gcloud container clusters get-credentials default --region=&lt;your_region&gt;</code></p>
