尝试将节点添加到我的 Kubernetes 集群时如何解决超时问题?
How do I solve a timeout when trying to add a node to my Kubernetes cluster?
我正在尝试向我的(当前 运行ning)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
这里是堆栈跟踪的片段
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)
这是什么意思,我该如何解决?
我忘了我的服务器上安装了防火墙
我已经按照此处找到的说明添加了端口 6443 (Kubeadm join failed : Failed to request cluster-info),一切正常!
我正在尝试向我的(当前 运行ning)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
这里是堆栈跟踪的片段
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)
这是什么意思,我该如何解决?
我忘了我的服务器上安装了防火墙
我已经按照此处找到的说明添加了端口 6443 (Kubeadm join failed : Failed to request cluster-info),一切正常!