k8s镜像一直failed pull images

通过流水线部署项目后,在负载重新部署的过程中,镜像一直都在尝试重新拉取镜像,但是都失败了: failed pull image
Failed to pull image "registry.cn-shanghai.aliyuncs.com/xxxxxxxx:xxxxx": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry.cn-shanghai.aliyuncs.com/v2/": dial tcp 139.196.71.17:443: i/o timeout
查看部署模板的配置,也看到了镜像的更新,但是实际上pod缺没有更新;
于是乎,尝试着在master节点主动docker pull镜像发现正常
但是转到了work节点pull镜像发现失败,ping百度失败
【k8s镜像一直failed pull images】恍然大悟,nat网络被我上周关了,导致节点无法访问外网,重新给work节点配置了nat网络后,服务回复正常

本文由博客一文多发平台 OpenWrite 发布!

    推荐阅读