kubeadm init初始化失败(It seems like the kubelet isn‘t running or healthy)

2022-11-21 20:54:09 浏览数 (1)

Docker:1.13.1 kubelet:1.18.0 kubeadm init 报错信息

代码语言:javascript复制
[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.
[kubelet-check] It seems like the kubelet isn't running or healthy.

修改docker配置文件

代码语言:javascript复制
vim /usr/lib/systemd/system/docker.service
ExecStart=......
         --exec-opt native.cgroupdriver=cgroupfs 
          .......

重启docker

代码语言:javascript复制
systemctl daemon-reload
systemctl restart docker

重新进行kubeadm初始化

0 人点赞