k8s 1.28.2 W0518 detected that the sandbox image “registry.k8s.io/pause:3.6“

如果是报了这个错

W0518 15:46:11.386430   51466 checks.go:835] detected that the sandbox image "registry.k8s.io/pause:3.6" of the container runtime is inconsistent with that used by kubeadm. It is recommended that using "registry.aliyuncs.com/google_containers/pause:3.9" as the CRI sandbox image.

运行:

containerd config default > /etc/containerd/config.toml
cat /etc/containerd/config.toml | grep -n "sandbox_image"
vi /etc/containerd/config.toml
sandbox_image = " registry.aliyuncs.com/google_containers/pause:3.6"

替换成:
sandbox_image = "registry.aliyuncs.com/google_containers/pause:3.9" (这里改一下)

# 重启 containerd 服务

systemctl daemon-reload
systemctl restart containerd.service

注意了!!所有节点都要进行这个操作,我整了半天,结果一直在master节点改,然后一直报这个错,然后我上网找,没人提到这个是每个节点都要进行的操作,可能这个是基础,但是我纯小白,磨了我17个小时 

如果init的时候 文件已存在的话,顺着路径把这些文件删除就行了(可以备份)

然后还有一些错误可以去看他们的博客:

端口被占用 :http://t.csdnimg.cn/XDp0g

container runtime is not running:http://t.csdnimg.cn/ylkzK

全过程步骤:http://t.csdnimg.cn/lgXaw

不过注意版本问题,不要指定版本安装,直接默认安装最新版本即可

centos 桥接模式 ping不通:http://t.csdnimg.cn/tDIKi 注意如果不行把桥接到自动设置为桥接到Intel

the system RAM (972 MB) is less than the minimum 1700 MB: 

基本上所有问题都能百度到,只是如果是纯小白的话,可能会和我一样懵逼,按步骤做了,但是还是没解决问题。

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值