I came across a weird issue in Docker Desktop for windows where Kubernetes was not coming up and it stuck in “Kubernetes is Starting”.

Please follow below steps to resolve the issue in Windows 10 machine.

  1. Quit Docket Desktop
  2. Delete the pki folder. Please find the folder in below path C:\Users\<User_Name>\AppData\Local\Docker\pki
  3. Delete the ~\.kube folder. You can find the .kube in default user directory C:\Users\<User_Name>\.kube
  4. Start the Docker again.
  5. Open the C:\Users\<User_Name>\.kube\config file in text editor and replace https://kubernetes.docker.internal:6443 to https://localhost:6443
  6. Restart the Docker Desktop to apply the changes.

Reference:

https://stackoverflow.com/questions/57711639/docker-for-windows-stuck-at-kubernetes-is-starting-after-updating-to-version-2

(Visited 5,697 times, 43 visits today)