码迷,mamicode.com
首页 > Web开发 > 详细

kubernetes 创建pod 启动不了 处于ContainerCreating状态

时间:2020-02-18 18:41:48      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:ref   war   containe   net   ras   cpio   out   x86   creating   

kubectl describe pod my-nginx-379829228-c5g9f

 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: lookup registry.access.redhat.com on [::1]:53: read udp [::1]:34107->[::1]:53: read: connection refused)"

  8m    8m      1       {kubelet 127.0.0.1}             Warning FailedSync      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: lookup registry.access.redhat.com on [::1]:53: read udp [::1]:54383->[::1]:53: read: connection refused)"

证书问题,处理方式如下:

yum install -y rhsm

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm

rpm2cpio python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm | cpio -iv --to-stdout ./etc/rhsm/ca/redhat-uep.pem | tee /etc/rhsm/ca/redhat-uep.pem

kubernetes 创建pod 启动不了 处于ContainerCreating状态

标签:ref   war   containe   net   ras   cpio   out   x86   creating   

原文地址:https://blog.51cto.com/13396187/2471854

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!