<p>I tried to install kubernetes with Docker desktop. However, as soon as I type in</p>
<pre><code>kubectl get nodes
</code></pre>
<p>I get Remote kubernetes server unreachable error.</p>
<pre><code>I0217 23:42:56.224000   26220 versioner.go:56] Remote kubernetes server unreachable
Unable to connect to the server: dial tcp 172.28.112.98:6443: 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.
</code></pre>
<p>Any ideas on how to fix this?</p>

Mark
<p>Have you got more than one context in your kubeconfig?</p>
<p>You can check this with <code>kubectl config get-contexts</code>.</p>
<p>If necessary change your context to Docker Desktop Kubernetes using <code>kubectl config use-context docker-desktop</code>.</p>
<p>Is it possible that you may have tried <a href="https://minikube.sigs.k8s.io/docs/" rel="noreferrer">minikube</a> and this has left cluster/context in your <code>.kube\config</code>?</p>
<p><a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="noreferrer">Configure Access to Multiple Clusters</a></p>
