一台新服务器用 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"]
}