TASK [kube-node : 轮询等待kubelet启动] ***********************************************************************************************************************************************************
FAILED - RETRYING: 轮询等待kubelet启动 (4 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (4 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (3 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (3 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (2 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (2 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (1 retries left).
FAILED - RETRYING: 轮询等待kubelet启动 (1 retries left).
fatal: [10.0.0.161]: FAILED! => {"attempts": 4, "changed": true, "cmd": "systemctl status kubelet.service|grep Active", "delta": "0:00:00.005127", "end": "2022-04-17 20:08:46.545709", "rc" 0, "start": "2022-04-17 20:08:46.540582", "stderr": "", "stderr_lines": [], "stdout": " Active: activating (auto-restart) (Result: exit-code) since Sun 2022-04-17 20:08:41 CST; 4s ago","stdout_lines": [" Active: activating (auto-restart) (Result: exit-code) since Sun 2022-04-17 20:08:41 CST; 4s ago"]}
fatal: [10.0.0.160]: FAILED! => {"attempts": 4, "changed": true, "cmd": "systemctl status kubelet.service|grep Active", "delta": "0:00:00.006289", "end": "2022-04-17 20:08:46.625754", "rc" 0, "start": "2022-04-17 20:08:46.619465", "stderr": "", "stderr_lines": [], "stdout": " Active: activating (auto-restart) (Result: exit-code) since Sun 2022-04-17 20:08:42 CST; 4s ago","stdout_lines": [" Active: activating (auto-restart) (Result: exit-code) since Sun 2022-04-17 20:08:42 CST; 4s ago"]}
PLAY RECAP *********************************************************************************************************************************************************************************
10.0.0.160 : ok=53 changed=47 unreachable=0 failed=1
10.0.0.161 : ok=49 changed=42 unreachable=0 failed=1
查看是否有什么报错信息
root@master1:/etc/kubeasz
Apr 17 20:08:36 master1 kubelet[84274]: I0417 20:08:36.824278 84274 nvidia.go:61] NVIDIA setup failed: no NVIDIA devices found
Apr 17 20:08:36 master1 kubelet[84274]: E0417 20:08:36.906828 84274 server.go:292] "Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"systemd\" is different from docker cgroup driver: \"cgroupfs\""
Apr 17 20:08:42 master1 kubelet[84813]: I0417 20:08:42.277033 84813 nvidia.go:61] NVIDIA setup failed: no NVIDIA devices found
Apr 17 20:08:42 master1 kubelet[84813]: E0417 20:08:42.323635 84813 server.go:292] "Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"systemd\" is different from docker cgroup driver: \"cgroupfs\""
解决:
docker中将资源管理驱动设置统一
“exec-opts”: [“native.cgroupdriver=systemd”]
root@master1:~
{
"registry-mirrors": ["https://9y0z4v79.mirror.aliyuncs.com"],
"exec-opts": ["native.cgroupdriver=systemd"]
}
|