Kubernetes &引用;服务器错误(超时):服务器无法在分配的时间内返回响应,但可能仍在处理请求(获取节点)";

Kubernetes &引用;服务器错误(超时):服务器无法在分配的时间内返回响应,但可能仍在处理请求(获取节点)";,kubernetes,Kubernetes,当我使用这个命令:“kubectl get nodes”时,我得到以下错误: Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get nodes) 有人能帮忙解决这个问题吗?如OP@Sam.Yang在评论部分所述,问题已经解决 问题在于apiserver.sh中KUBE\u

当我使用这个命令:“kubectl get nodes”时,我得到以下错误:

Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get nodes)

有人能帮忙解决这个问题吗?

如OP@Sam.Yang在评论部分所述,问题已经解决


问题在于
apiserver.sh中
KUBE\u ETCD\u版本的配置错误。
请检查此命令:
kubectl cluster info
root@k8s-server01:/opt/kubernetes/bin#kubernetes master运行的kubectl集群信息用于进一步调试和诊断集群问题,使用'kubectl cluster info dump',似乎主服务器上的iptables存在问题。您是否按照说明打开了端口?问题解决了,我在apiserver.sh中使用了错误的KUBE_ETCD_版本配置。