释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要
Kubelet 使用containerd作为容器运行时,启动的时候提示下面的报错内容
Jul 19 10:44:41 VM-16-2-ubuntu kubelet[368056]: E0719 10:44:41.359592 368056 kuberuntime_manager.go:225] "Get runtime version failed" err="get remote runtime typed version failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
Jul 19 10:44:41 VM-16-2-ubuntu kubelet[368056]: Error: failed to run Kubelet: failed to create kubelet: get remote runtime typed version failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService
本次版本使用二进制安装
root@VM-16-2-ubuntu:/usr/lib/systemd/system# ctr version
Client:
Version: v1.6.4
Revision: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
Go version: go1.17.9
Server:
Version: v1.6.4
Revision: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
UUID: f3171aee-67b0-4e01-871b-2e93674af2ad
#Containerd版本
root@VM-16-2-ubuntu:/usr/lib/systemd/system# containerd --version
containerd github.com/containerd/containerd v1.6.4 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
#K8s版本
1.24.3
解决方法:
检查containerd配置文件
[plugins."io.containerd.grpc.v1.cri"]
systemd_cgroup = false --> to true
#将这里的删除
在下面的地方添加
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
...
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
最后重启containerd解决问题
[…] 请手动删除标记的67行systemd_cgroup = false,否则kubelet启动会提示下面的错误 https://i4t.com/5633.html […]