kubernetes创建yaml,pod服务一直处于 ContainerCreating状态

#   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

#    docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest


dial tcp: lookup access.redhat.com on 192.168.84.2:53: read udp 192.168.84.131:55994->192.168.84.2:53: i/o timeout

因为该镜像在墙外。解决办法:

#    docker pull registry.cn-shenzhen.aliyuncs.com/yuxing/pod-infrastructure      // 阿里云镜像仓库中镜像


# kubectl get pods // pod已启动


猜你喜欢

转载自blog.csdn.net/jiekou0376/article/details/80537995