Unfortunately, an error has occurred:
timed out waiting for the condition
This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)
If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- 'systemctl status kubelet'
- 'journalctl -xeu kubelet'
Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI.
Here is one example how you may list all running Kubernetes containers by using crictl:
- 'crictl --runtime-endpoint unix:///var/run/cri-dockerd.sock ps -a | grep kube | grep -v pause'
Once you have found the failing container, you can inspect its logs with:
- 'crictl --runtime-endpoint unix:///var/run/cri-dockerd.sock logs CONTAINERID'
root@k8s-master:~# find / -name cri-dockerd.sock
/run/cri-dockerd.sock
apt install kubeadm=1.22.4-00 kubelet=1.22.4-00 kubectl=1.22.4-00
apt install kubeadm=1.23.15-00 kubelet=1.23.15-00 kubectl=1.23.15-00
模糊查询 kube 相关的包
[root@ubuntu ~]# apt list *kube*
查询 kubeadm 的所有版本,kubelet 、kubectl一样
[root@ubuntu ~]# apt list kubeadm -a
安装1.22.4 的kubeadm、kubectl、kubelet
[root@ubuntu ~]# apt install kubeadm=1.22.4-00 kubelet=1.22.4-00 kubectl=1.22.4-00 -y