Unable to connect to the server: dial tcp i/o time out

前端 未结 10 1430
死守一世寂寞
死守一世寂寞 2021-02-06 21:52

When i run the kubectl version command , I get the following error message.

kubectl version
Client Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v         


        
10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 22:27

    I was facing the same issue on Ubuntu 18.04.1 LTS.

    The solution provided here worked for me.

    Just putting the same data here:

    1. Get current cluster name and Zone:

      gcloud container clusters list

    2. Configure Kubernetes to use your current cluster:

      gcloud container clusters get-credentials [cluster name] --zone [zone]

    Hope it helps.

提交回复
热议问题