本文介绍了无法连接到服务器:拨打TCP I/O超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行kubectl version命令时,出现以下错误消息.
When i run the kubectl version command , I get the following error message.
kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout
我该如何解决?
推荐答案
您可以使用以下命令获取有关客户端-服务器状态的相关信息.
You can get relevant information about the client-server status by using the following command.
kubectl config view
现在您可以使用以下命令相应地更新或设置k8s上下文.
Now you can update or set k8s context accordingly with the following command.
kubectl config use-context kubernetes
您可以对kubeconfig文件做进一步的操作.以下命令将为您提供所有必要的信息.
you can do further action on kubeconfig file. the following command will provide you with all necessary information.
kubectl config --help
这篇关于无法连接到服务器:拨打TCP I/O超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!