I was getting the same error when I installed kubernetes cluster via kubeadm.
After reading all the comments on the subject, I thought that the problem might be caused by containerd and the following two commands solved my problem, maybe it can help:
you can restart containerd service. this will fix the problem.
To make permanent fix, set SystemdCgroup = true in /etc/containerd/config.toml and make sure that kubelet is configured to use systemd cgroup driver. you can check in /var/lib/kubelet/config.yaml file
2
Answers
Check first if
k3s-io/k3s
issue 1857 could help:And:
So checking the
containerd
version can be a clue.containerd config screenshot
then restart the containerd service,