Suddenly getting "Unable to connect to the server: net/http: TLS handshake timeout" from kubectl

1/19/2019

My vanilla kubernetes cluster running on 'Docker for Mac' was running fine without any real load. Now, I deployed a few services and istio. Now, I am getting this error:

$ kubectl get pods --all-namespaces
Unable to connect to the server: net/http: TLS handshake timeout

Where can I see the kubectl logs?

I am on Mac OS High Sierra. Thank you for reading my post.

-- user674669
istio
kubectl
kubernetes

1 Answer

1/19/2019

enter image description here

I increased the RAM to 8GB, CPUs to 4 and swap space to 4GB, restarted Docker For Mac. kubectl works fine now.

-- user674669
Source: StackOverflow