I've created a cluster on Google Kubernetes Engine (previously Google Container Engine) and installed the Google Cloud SDK and the Kubernetes tools with it on my Windows machine.
It worked well for some time, and, out of nowhere, it stopped working. Every command I'm issuing with kubectl
provokes the following:
Unable to connect to the server: net/http: TLS handshake timeout
I've searched Google, the Kubernetes Github Issues, Stack Overflow, Server Fault ... without success.
I've tried the following:
- Restart my computer
- Change wifi connection
- Check that I'm not somehow using a proxy
- Delete and re-create my cluster
- Uninstall the Google Cloud SDK (and kubectl) from my machine and re-install them
- Delete my
.kube
folder (config and cache) - Check my
.kube/config
- Change my cluster's version (tried 1.8.3-gke.0 and 1.7.8-gke.0)
- Retry several hours later
- Tried both on PowerShell and cmd.exe
Note that the cluster seem to work perfectly, since I have my application running on it and can interact with it normally through the Google Cloud Shell.
Running:
gcloud container clusters get-credentials cluster-2 --zone europe-west1-b --project ___
kubectl get pods
works on Google Cloud Shell and provokes the TLS handshake timeout
on my machine.