<p>Issue type: Kubernetes on Docker Desktop stopped working due to expired kuber-apiserver certificates</p>
<p>OS Version/build: Windows 10 version - 1909 and OS Build - 18363</p>
<p>App version: Docker Desktop 3.03</p>
<p>Steps to reproduce:</p>
<ol>
<li>Install Docker Desktop</li>
<li>Enable Kubernetes</li>
<li>Change the Windows PC time to ahead by 1 year</li>
<li>Kubernetes cluster will stop working saying the kube-apiserver certificates are expired</li>
<li>The applications/workloads deployed on the Kubernetes cluster will also stop working.</li>
</ol>
<p>As Kubernetes certificates are issued for 1 year; after the 1 year time period the certificates are expired and this will break Kubernetes.</p>
<p><a href="https://i.stack.imgur.com/DaaR2.png" rel="nofollow noreferrer">certificate snapshot</a></p>
<p>Need help:
Requesting Information on how to renew the kube-apiserver certificates without affecting the Kubernetes and the installed application</p>

<p>I also had the issue showing in the etcd logs:</p>
<pre><code>{&quot;level&quot;:&quot;warn&quot;,&quot;ts&quot;:&quot;2023-02-14T11:47:26.260Z&quot;,&quot;caller&quot;:&quot;embed/config_logging.go:169&quot;,&quot;msg&quot;:&quot;rejected connection&quot;,&quot;remote-addr&quot;:&quot;192.168.65.4:34996&quot;,&quot;server-name&quot;:&quot;&quot;,&quot;error&quot;:&quot;tls: failed to verify client certificate: x509: certificate has expired or is not yet valid: current time 2023-02-14T11:47:26Z is after 2023-02-03T12:24:57Z&quot;}
</code></pre>
<p>I found the answer for windows here:
<a href="https://forums.docker.com/t/kubernetes-on-docker-desktop-fails-to-launch-after-kube-apiserver-certificate-expiry/106570/2" rel="nofollow noreferrer">https://forums.docker.com/t/kubernetes-on-docker-desktop-fails-to-launch-after-kube-apiserver-certificate-expiry/106570/2</a></p>
<p>on Mac OS, the path is <code>~/Library/Containers/com.docker.docker</code>. delete or backup the pki folder and restart docker. kubernetes should come back</p>
