kubeadm init 给出以下错误

kubeadm init 给出以下错误

以下问题有解决方案吗?

[preflight] Running pre-flight checks
    error execution phase preflight: [preflight] Some fatal errors occurred:
            [ERROR CRI]: container runtime is not running: output: time="2023-01-27T16:42:55Z" 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
    [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

答案1

请检查您的 CRI,例如(容器码头工人克里欧)没有运行

您应该在初始化集群之前使用以下命令检查它:

sudo systemctl status {你的容器运行时服务}

启用并启动服务:

sudo systemctl enable {你的容器运行时服务}

sudo systemctl start {你的容器运行时服务}

相关内容