k8s The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http...

初始化发生错误如下:

The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http://localhost:10255/healthz: dial tcp 127.0.0.1:10255: getsockopt: connection refused.


k8s The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http..._第1张图片

解决办法:

vim /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --fail-swap-on=false"

then run systemctl daemon-reload and then systemctl restart kubelet


参考链接

你可能感兴趣的:(k8s The HTTP call equal to 'curl -sSL http://localhost:10255/healthz' failed with error: Get http...)