Bootstrap

K8s master节点初始化失败报错

K8s master节点初始化失败报错

It seems like the kubelet isn't running or healthy.
The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

在这里插入图片描述


swapoff -a 关闭所有交换分区
在这里插入图片描述

然后重置kubeadm并重新加载kubelet服务
当前master节点重置kubeadm
kubeadm reset -f

重新加载kubelet服务
systemctl daemon-reload && systemctl restart kubelet

最后重新初始化master节点

;