I want to setup kubernetes on my virtual machine that use a ubuntu OS. I have install docker, kubeadm,kubelet and kubectl. After I run this command:
sudo kubeadm init –pod-network-cidr=10.10.0.0/16
It has error :
Unfortunately, an error has occurred:
context deadline exceeded
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 wi th the following commands: - ‘systemctl stalus 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/containerd/containerd.sock
ps -a | grep kube | grep -v pause’
Once you have found the failing container, you can inspect
as with
‘crictl –runtime-endpoint unix:///var/run/containerd/containerd.sock
logs CONTAINERID’
error execution phase wait-control-plane: couldn’t initialize a Kubernetes clust
ег
To see the stack trace of this error execute with – -v=5 or higher
How to solve this error?
New contributor
Muhammad Faridudin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.