[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。
这个是犹豫没有更改docker.service.
找到路径:vim /usr/lib/systemd/system/docker.service
给他中间添加一个
–exec-opt native.cgroupdriver=systemd
有些人的=后面是cgroupfs 但是我不管用,我改成systemd就行了,你们都可以试试
随后先删除初始化导致的错误文件夹
rm -rf /etc/kubernetes/manifests
然后重启docker
systemctl daemon-reload
systemctl restart docker
最后初始化k8s
kubeadm init --config /home/k8s/kubeadm.yaml


![解决:k8s[kubelet-check] The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz’ failed with 解决:k8s[kubelet-check] The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz’ failed with](http://www.mshxw.com/aiimages/31/339066.png)
