error: couldn't read version from server

后端 未结 6 2142
旧巷少年郎
旧巷少年郎 2021-02-13 13:12

I am getting the following error when trying to run kubectl locally.

error: couldn\'t read version from server: Get http://localhost:8080/api: dial tc

6条回答
  •  一生所求
    2021-02-13 13:35

    I was using Google Container Engine (GKE) and got this error, too. In my case, it was because I forgot to create a container cluster first.

    If you create a cluster using the gcloud command, it sets the config for the you.

    gcloud container clusters create my-cluster-name
    

提交回复
热议问题