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节点改,然后一直报这个错,然后我上网找,没人提到这个是每个节点都要进行的操作,可能这个是基础,但是我纯小白

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值