<p>I have downloaded Docker and then enabled Kubernetes on the Desktop. When I execute 'Kubectl version' command on the PowerShell it says:</p>
<p>kubectl : Unable to connect to the server: dial tcp : connectex:
A connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host has
failed to respond.
At line:1 char:1</p>
<ul>
<li>kubectl version</li>
</ul>

srigu
<p>The same issue I've had encountered just today and I found the solution the same day.</p>
<p>Here's the solution to my problem:</p>
<ol>
<li>I pressed right-click on my Docker icon at the taskbar.</li>
<li>I changed the cluster that my k8s is pointing at from the 'gke_regal-hybrid' to 'docker-desktop' (in your case, must be different) and I was able to rerun the commands without any problems anymore.</li>
</ol>
<p><img src="https://i.stack.imgur.com/KIPNJ.png" alt="Click this for image reference" /></p>
