执行kubeadm -init报如下错误

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

 初试话集群时记得有swap警告

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

查看kubelet.service服务 systemctl status kubelet含有报错信息

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

 查看主节点是否内存有交换区free -m

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

关闭内存交换区swapoff -a

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

重启kubelet服务systemctl restart kubelet

初始化kubeadm init报curl -sSL http://localhost:10248/healthz‘ failed with error: Get http://localhost。。。

集群kubelet组件正常运行

建议删除集群,kubeadm reset,重新初始化集群

 

相关文章: