kubernete node 加入集群失败:”It seems like the kubelet isn’t running or healthy”

一台新服务器用 kubeadm join 命令加入集群时出现下面的错误:

[kubelet-check] Initial timeout of 40s passed.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused.

请问如何解决?

回答

通过 github 上 v1.14.0 problem : It seems like the kubelet isn't running or healthy回复中的方法解决了。

在 /etc/docker/daemon.json 中添加

{
  "exec-opts": ["native.cgroupdriver=systemd"]
}
以上是kubernete node 加入集群失败:”It seems like the kubelet isn’t running or healthy”的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>