K8S Master Initialize Error: [ERROR CRI]: container runtime is not running: output: E0812

[root@master1 ~]# kubeadm init   --kubernetes-version 1.24.3   --apiserver-advertise-address=0.0.0.0   --service-cidr=10.96.0.0/16   --pod-network-cidr=10.250.0.0/16   --image-repository k8s.gcr.io 
[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: E0812 15:41:43.145278   29697 remote_runtime.go:925] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
time="2022-08-12T15:41:43+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
# Solution
[root@master1 ~]# rm -rf /etc/containerd/config.toml
[root@master1 ~]# systemctl restart containerd

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *