问题原文
原帖链接 · sfgroups · CC BY-SA 4.0
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
社区高分解答
原帖链接 · Advialance · CC BY-SA 4.0
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 configuration
Just a blank config with systemd_cgroup fixed issue for me:
cat > /etc/containerd/config.toml <<EOF
[plugins."io.containerd.grpc.v1.cri"]
systemd_cgroup = true
EOF
systemctl restart containerd
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
