[root@localhost ~]# kubeadm init --apiserver-advertise-address 10.191.80.55 --pod-network-cidr=10.244.0.0/16
[init] Using Kubernetes version: v1.24.3
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: E0815 18:19:36.279228 21409 remote_runtime.go:925] “Status from runtime service failed” err=“rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService”
time=“2022-08-15T18:19:36+08:00” level=fatal msg=“getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.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
解决办法:

在尝试使用kubeadminit初始化Kubernetes集群时,遇到了一个错误:containerruntimeisnotrunning,具体表现为RuntimeService未知。解决方案是删除/etc/containerd/config.toml文件并重启containerd服务。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



