跳至内容

Kubeadm init失败:container runtime is not running

Karson Zhong · Posted on 2023-10-27 · 114 Views

问题

这个问题是针对使用containerd作为CRI的情况

使用Kubeadm init初始化Kubernetes时报错:

[ERROR CRI]: container runtime is not running: output: time="2023-10-26T23:50:43-04:00" level=fatal msg="validate service connection: validate CRI v1 runtime API for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
, error: exit status 1

原因

大概率是containerd安装的时候默认把CRI禁用了

解决

打开配置文件:

 vi /etc/containerd/config.toml

找到

disabled_plugins = ["cri"]

将里面的"cri"删除掉
也就是变成这样:

disabled_plugins = []

保存退出

重启containerd

systemctl restart containerd

完事了,重新执行初始化

kubeadm init

程序员,热衷于游戏开发和软件制作。但也是一个杂食动物,喜欢探索各种赛博相关的奇技淫巧。

0 0 投票数
文章评分
订阅评论
提醒
guest

0 评论
内联反馈
查看所有评论

Nova - rebirth of a wonderful theme.

Theme Nova by KarsonJo

  • Serif
  • Sans Serif
切换主题 | SCHEME TOOL
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
0
希望看到您的想法,请您发表评论x
0
希望看到您的想法,请您发表评论x