Error syncing pod, skipping: failed to “StartContainer“ for “POD“ with ErrImagePull: “image pull fa

 Error syncing pod, skipping: failed to "StartContainer" for "POD" with ErrImagePull: "image pull failed for registry.access.redhat.com/rhel7/pod-infrastructure:latest, this may be because there are no credentials on this request.  details: (Get https://registry.access.redhat.com/v1/_ping: dial tcp 0.0.0.0:443: connect: connection refused)

 

搭建好k8s之后,创建pod的时候一直卡在这里,个人猜想因为国内网络不通,所以无法下载到“ registry.access.redhat.com/rhel7/pod-infrastructure:latest”镜像,所以下载同名的其他镜像,在hub.docker.com上找到有同名的镜像,如下图。

所以我在k8s的node节点先下载此镜像

docker pull tianyebj/pod-infrastructure

下载完成之后,打一个无法下载成功的镜像的tag

docker tag docker.io/tianyebj/pod-infrastructure registry.access.redhat.com/rhel7/pod-infrastructure

再重新创建pod,不出意外可以成功创建pod了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值