I am running Docker Desktop 4.1.1 (69879) on Windows 10. I just activated the Kubernets cluster in the Docker settings and realized that ‘kubectl get cs’ returns the following:
controller-manager
Unhealthy
Get “http://127.0.0.1:10252/healthz”: dial tcp 127.0.0.1:10252: connect: connection refused
kubectl get cs is deprecated and it uses a hardcoded HTTP port to check health status. I don’t know what the real alternative is using one command but you can check health status with kubectl describe pod -n kube-system PODNAME. You can see the actual URL in there:
kubectl describe pod -n kube-system kube-scheduler-docker-desktop