Kubernetes Pod报错 filed to get sandbox image “k8s.gcr.io/pause:3.6“
Posted 地表最强菜鸡
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kubernetes Pod报错 filed to get sandbox image “k8s.gcr.io/pause:3.6“相关的知识,希望对你有一定的参考价值。
最近工作中在部署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 镜像,所以我们把镜像下载到这台服务器就可以了,执行命令:
$ 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"问题解决。
以上是关于Kubernetes Pod报错 filed to get sandbox image “k8s.gcr.io/pause:3.6“的主要内容,如果未能解决你的问题,请参考以下文章