從日志能夠看到k8s核心服務(wù)的pod創(chuàng)建失敗,因為獲取pause鏡像失敗,總是從k8s.gcr.io下載。
經(jīng)過確認(rèn),k8s 1.26中啟用了CRI sandbox(pause) image的配置支持。
之前通過kubeadm init –image-repository設(shè)置的鏡像地址,不再會傳遞給cri運(yùn)行時去下載pause鏡像
而是需要在cri運(yùn)行時的配置文件中設(shè)置,修改/etc/containerd/config.toml文件中sandbox的鏡像地址為
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "registry.aliyuncs.com/k8sxio/pause:3.6"
然后重啟containerd文章來源:http://www.zghlxwxcb.cn/news/detail-572698.html
$ systemctl restart containerd
然后重置kubeadm文章來源地址http://www.zghlxwxcb.cn/news/detail-572698.html
$ kubeadm reset
$ kubeadm init
到了這里,關(guān)于failed to get sandbox image “k8s.gcr.io/pause:3.6“: failed to pull image “k8s.gcr.io/pause:3.6“的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!