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节点