Unable to connect to the server: net/http: TLS handshake timeout (from local to GCP cluster)

I create two Kubernetes clusters in the same google project. Last week I couldn't connect one of them.

jascao@mac ~ % gcloud container clusters get-credentials my-test-cluster --region us-central1 --project ****
Fetching cluster endpoint and auth data.
kubeconfig entry generated for my-test-cluster.
jascao@mac ~ % kubectl get namespace
NAME              STATUS   AGE
consul            Active   27d

jascao@mac ~ % gcloud container clusters get-credentials my-test-cluster2 --region us-central1 --project ****
Fetching cluster endpoint and auth data.
kubeconfig entry generated for my-test-cluster2.
jascao@mac ~ % kubectl get namespace
Unable to connect to the server: net/http: TLS handshake timeout

I have tried the next methods, and all not working

  1. restart the mac
  2. add the Memory of docker.
  3. delete the kubectl config and reconnect
  4. relogin

So does anyone know how to solve this problem?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum