debug kubelet not starting

kubeadm init 报错如下:

[kubelet-check] It seems like the kubelet isn't running or healthy.

[kubelet-check] 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.

解决办法:

Things were  solved by setting --fail-swap-on=false in the systemd script.

Just make the modification on the file /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"

源: https://serverfault.com/questions/877136/debug-kubelet-not-starting

你可能感兴趣的:(debug kubelet not starting)