解决CentOS 7下Kubernetes报错:"image pull failed for registry.access.redhat.com/rhel7/pod-infrastructure

几个排名靠前的搜索结果都靠不住。

现象是CentOS7 下刚装的Kubernetes启动的Pod总是卡在Creating状态,describe pod会返回类似标题的报错信息,具体是

 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: (open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory)

搜索找到的头几个中文搜索结果做法大同小异,安装rhsm系列的包,然而不管用。

最后还是周转到centos自己的网站上的一个bug报告,总算知道了原因而且解决了。

报告链接在此 https://bugs.centos.org/view.php?id=14785

rhsm系列是redhat红帽的订阅服务相关包,centos是重编译redhat发布得到的,所以也需要用到rhsm。报错信息里报告的缺的证书位置,其实只是个符号链接,真正缺的证书位置在 /etc/rhsm/ca/redhat-uep.pem 。 某个版本以前这个证书是通过 python-rhsm-certificates包提供,但centos 7 里提示这个包被 subscripti

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值