I have installed containerd 1.4.9
on CentOS steam 8 server.
based on this document https://containerd.io/docs/getting-started/. I have created default config file containerd config default > /etc/containerd/config.toml
like this.
after restarting containerd, when I run crictl ps
Its throwing below error
FATA[0000] listing containers failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService
How to fix this error? after fix this I want to join this node to Kubernets cluster 1.21.3
using systemd
cfgroup.
Thanks SR
Had the same error today while upgrade kubelet on the worker nodes. Issue was within the default configuration. Note that containerd will run fine without any config. In my case I just wanted to enable systemd_cgroup.
ctr plugin ls
showed that cri plugin was in error state with default configurationJust a blank config with systemd_cgroup fixed issue for me:
Background Context About the error:
From gitlab.cncf.ci/containerd crictl.md docs
"This could be that you are using an incorrect containerd configuration (maybe from a Docker install). You will need to update your containerd configuration to the containerd instance that you are running."
This problem related to errors in CRI plugins. You can check the status of the CRI plugin
In the past I got the same problem due to devmapper problem, since devmapper is configured as default CRI snapshotter, CRI got error as well.
The problem gone after I reconfigure the devmapper snapshotter.
Removing the config (/etc/containerd/config.toml) works as well, but the containerd runs with default configuration, which was not what I wanted.