最近工作中在部署Pod后发现无法正常启动,查看Pod详情后看到以下报错信息:
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "k8s.gcr.io/pause:3.6": failed to pull image "k8s.gcr.io/pause:3.6": failed to pull and unpack image "k8s.gcr.io/pause:3.6": failed to resolve reference "k8s.gcr.io/pause:3.6": failed to do request: Head "https://k8s.gcr.io/v2/pause/manifests/3.6": dial tcp 74.125.23.82:443: connect: connection refused
问题的原因是因为调度的这台服务器上没有 k8s.gcr.io/pause:3.6 镜像,所以我们把镜像下载到这台服务器就可以了,执行命令:文章来源:https://www.toymoban.com/news/detail-569509.html
$ crictl pull registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6
$ ctr -n k8s.io i tag registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6 k8s.gcr.io/pause:3.6
到此 Kubernetes Pod报错 filed to get sandbox image "k8s.gcr.io/pause:3.6"问题解决。文章来源地址https://www.toymoban.com/news/detail-569509.html
到了这里,关于Kubernetes Pod报错 filed to get sandbox image “k8s.gcr.io/pause:3.6“的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!