当前位置:   article > 正文

container runtime is not running

container runtime is not running

k8s初始化报错:container runtime is not running

  1. [root@node1 kube]# kubeadm init --config=kubeadm-config.yaml
  2. ...
  3. error execution phase preflight: [preflight] Some fatal errors occurred:
  4. [ERROR CRI]: container runtime is not running: output: time="2024-02-
  5. 23T16:41:28+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"
  6. , error: exit status 1
  7. ...

解决方案:

1、

  1. [root@node1 kube]# cat > /etc/containerd/config.toml <<EOF
  2. > [plugins."io.containerd.grpc.v1.cri"]
  3. > systemd_cgroup = true
  4. > EOF

2、重启

  1. [root@node1 kube]# systemctl restart containerd
  2. [root@node1 kube]# systemctl status containerd
  3. ● containerd.service - containerd container runtime
  4. Loaded: loaded (/etc/systemd/system/containerd.service; disabled; vendor preset: disabled)
  5. Active: active (running) since 五 2024-02-23 16:42:09 CST; 3s ago
  6. Docs: https://containerd.io
  7. Process: 3431 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
  8. Main PID: 3433 (containerd)
  9. Tasks: 10
  10. Memory: 14.6M
  11. CGroup: /system.slice/containerd.service
  12. └─3433 /usr/bin/containerd

引用参考:error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]: contai - zhangwuji的博客 - 91名师指路91mszl.com-让能力变成价值

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/565621
推荐阅读
相关标签
  

闽ICP备14008679号