<p>I am using kubernetes with docker desktop on MacOS Monterey.
I have problem with starting kubernetes, because 1 year passed and my kubernetes certificates are invalid.</p>
<p>How can I renew them ?</p>
<p>Error message:</p>
<pre><code>Error: Kubernetes cluster unreachable: Get &quot;https://kubernetes.docker.internal:6443/version&quot;: EOF
</code></pre>
<p>I tried to install <code>kubeadm</code> but I think it is only suitable if I use <code>minikube</code>.</p>
<p>Edit:
I am using Mac with M1 chip.</p>

<p>You will need to create a new set of <a href="https://docs.docker.com/desktop/faqs/macfaqs/#how-do-i-add-tls-certificates" rel="nofollow noreferrer">certificates</a> and keys in order to update the certificates used by Docker Desktop for MacOS. After that, you will need to add the new certificates and keys to the Kubernetes configuration file. Create a certificate signing request (CSR) first, then use the CSR to create new certificates and keys. The Kubernetes configuration file needs to be updated to point to the new certificates and keys after they have been obtained in the appropriate directory structure. Finally, in order for the brand-new certificates and keys to take effect, you will need to restart your Kubernetes cluster.</p>
<p>Using the minikube command-line tool.Use the minikube delete command to get rid of the existing cluster is the first step in updating the certificates. The minikube start command can be used to create a new cluster with the updated certificates after the cluster has been deleted. Finally, save the cluster configuration file with the most recent <a href="https://minikube.sigs.k8s.io/docs/handbook/untrusted_certs/" rel="nofollow noreferrer">certificates</a> by employing the minikube get-kube-config command.</p>
<p>Check for the kubernetes version if you are using an older version upgrade it to the latest version,the Kubernetes version can be upgraded after a Docker Desktop update. However, when a new Kubernetes version is added to Docker Desktop, the user needs to reset its current cluster in order to use the newest version.</p>
