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