【问题标题】:How do I solve a timeout when trying to add a node to my Kubernetes cluster?尝试将节点添加到 Kubernetes 集群时如何解决超时问题?
【发布时间】:2021-09-18 00:24:46
【问题描述】:

我正在尝试向我的(当前正在运行的)Kubernetes 集群添加一个节点。
当我运行 kubeadm join 命令时,我收到以下错误:

[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker 
cgroup driver. The recommended driver is "systemd".  
Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: couldn't validate the identity of the API Server:  
Get "https://159.65.40.41:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s":  
net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
To see the stack trace of this error execute with --v=5 or higher

这是来自堆栈跟踪的 sn-p

I0917 16:06:58.162180    2714 token.go:215] [discovery] Failed to request cluster-info, will try again: Get "https://*redacted*:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

这是什么意思,我该如何解决?

【问题讨论】:

    标签: kubernetes nodes


    【解决方案1】:

    我忘了我的服务器上安装了防火墙

    我已按照此处 (Kubeadm join failed : Failed to request cluster-info) 的说明添加了端口 6443,一切都很好!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-21
      • 2015-10-05
      • 2020-02-04
      • 2021-09-28
      • 1970-01-01
      • 2021-01-08
      • 2015-11-26
      • 1970-01-01
      相关资源
      最近更新 更多