Kubernetes Unable to connect to the server: EOF

Earlier today I had increased my Docker desktop resources, but when ever since it restarted Kubernetes has not been able to complete its startup. Whenever I try to run a kubectl command, I get Unable to connect to the server: EOF in response.

I had thought that it started because I hadn’t deleting a helm chart before adjusting the resource values in Settings, thus said resources having been assigned to the pods instead of the Kubernetes api server. But I have not been able to fix this issue.

This is what I have tried thus far:

  • Restarting Docker again
  • Reset Kubernetes
  • Reset Docker to factory settings
  • Deleting the VM in hyper-v and restarting Docker
  • Uninstalling and reinstalling Docker Desktop
  • Deleting the pki folder and restart Docker
  • Set the Environment Variable for KUBECONFIG
  • Deleting .kube/config and restart
  • Another clean reinstall of Docker Desktop

But Kubernetes does not complete its startup, so I still get Unable to connect to the server: EOF in response.

Is there anything I haven’t tried yet?