I have followed https://forums.docker.com/t/unable-to-install-kubernetes-stuck-on-starting-state/117048
- removed
pki
folder fromC:\users\<user_name>\AppData\Local\Docker
- removed
.kube
folder fromC:\users\<user_name>
I even uninstalled and reinstalled the docker desktop. Nothing is working. Does anyone have a workaround?
Uninstall Docker Desktop
Delete the below files (note that the below commands are destructive, meaning it will delete all your images, volumes, and any Docker related files on your system)
C:\ProgramData\Docker
C:\ProgramData\DockerDesktop
C:\Program Files\Docker
C:\Users<your user name>.docker
C:\Users<your user name>\AppData\Local\Docker
C:\Users<your user name>\AppData\Roaming\Docker
C:\Users<your user name>\AppData\Roaming\Docker DesktopReinstall by following the steps on the links here:
When I executed:
kubectl get all -n kube-system
E0427 09:42:00.616731 195508 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF
E0427 09:42:10.730946 195508 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF
E0427 09:42:20.869818 195508 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF
E0427 09:42:30.999510 195508 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF
E0427 09:42:41.129191 195508 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF
Unable to connect to the server: EOF
kubectl version
Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Unable to connect to the server: EOF
I have verified C:\Windows\System32\drivers\etc\hosts
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
# Added by Docker Desktop
192.168.1.3 host.docker.internal
192.168.1.3 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section