“[kubelet-check]” kubelet 在以下情况下未运行:kubeadm init

“[kubelet-check]” kubelet 在以下情况下未运行:kubeadm init

当命令:kubeadm init 最终提交时,会弹出以下错误:

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

查看 journalctl -xeu kubelet 后,似乎 containerd 无法正常工作。但是,containerd 处于活动状态并正在运行。

这是 journalctl -xeu kubelet log 中的第一个错误:

vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Service: Get "https://X.X.X.X:6443/api/v1/services?limit=500&resourceVersion=0": dial tcp X.X.X.X:6443: connect: connection refused vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Service: failed to list *v1.Service: Get "https://X.X.X.X:6443/api/v1/services?limit=500&resourceVersion=0": dial tcp X.X.X.X:6443: connect: connection refused

相关内容