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

前端 未结 10 1597
死守一世寂寞
死守一世寂寞 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:17

    If you are using azure and have recently changed your password try this:

    az account clear
    az login
    

    After logging in successfully:

    az aks get-credentials --name project_name --resource-group resource_group_name
    

    Now when you run

    kubectl get nodes
    

    you should see something. Also, make sure you are using the correct kubectl context.

提交回复
热议问题