failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint
kubelet 1.27.0
ubuntu 20.04.6
kubeadm init ..... 异常
1 2 3 4 5 6 7 8 9 10 11 12 | zxnl@zxnl-VirtuaBox:~ # kubeadm init \ > --image-repository registry.aliyuncs.com /google_containers \ > --kubernetes-version v1.27.0 \ > --pod-network-cidr=192.168.0.0 /16 \ > --apiserver-advertise-address=192.168.56.2 [init] Using Kubernetes version: v1.27.0 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]:<strong> container runtime is not running: output: time = "2023-05-26T10:34:14+08:00" level=fatal msg= "validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" , error: exit status 1< /strong > [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with -- v =5 or higher |
解决办法
通过下载和替换二进制文件手动将 containerd 升级到 1.6 或更高版本
1 2 3 4 5 6 | wget https: //github .com /containerd/containerd/releases/download/v1 .6.12 /containerd-1 .6.12-linux-amd64. tar .gz tar xvf containerd-1.6.12-linux-amd64. tar .gz systemctl stop containerd cd bin cp * /usr/bin/ systemctl start containerd |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~