<p>I am trying to enable kubernetes for Docker Desktop. Kubernetes is however failing to start.</p>
<p>My log file shows:</p>
<pre><code>cannot get lease for master node: Get &quot;https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop&quot;: x509: certificate signed by unknown authority: Get &quot;https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop&quot;: x509: certificate signed by unknown authority
</code></pre>
<p>I have NO_PROXY env var set already, and my hosts file has
<code>127.0.0.1 kubernetes.docker.internal</code> at the end, as was suggested <a href="https://stackoverflow.com/questions/66364587/docker-for-windows-stuck-at-kubernetes-is-starting">here</a></p>
<p>I appreciate any help</p>

Sienna
<p>Below work around can help you resolve your issue.</p>
<p>You can solve this by</p>
<ul>
<li>Open ~.kube\config in a text editor</li>
<li>Replace <a href="https://kubernetes.docker.internal:6443" rel="nofollow noreferrer">https://kubernetes.docker.internal:6443</a> to https://localhost:6443</li>
<li>Try connecting again</li>
</ul>
<p>From this <a href="https://forums.docker.com/t/waiting-for-kubernetes-to-be-up-and-running/47009" rel="nofollow noreferrer">issue</a></p>
<ul>
<li>Reset Docker to factory settings</li>
<li>Quit Docker</li>
<li>Set the KUBECONFIG environment variable to %USERPROFILE%.kube\config</li>
<li>Restart Docker and enable Kubernetes (still took a few minutes to start)</li>
</ul>
<p>Attaching troubleshooting <a href="https://bobcares.com/blog/docker-x509-certificate-signed-by-unknown-authority/" rel="nofollow noreferrer">blog1</a>, <a href="https://velaninfo.com/rs/techtips/docker-certificate-authority/" rel="nofollow noreferrer">bolg2</a> for your reference.</p>
