kubernetes权威指南学习遇见的问题以及意见之四:pods状态始终是ContainerCreating
问题描述:pods状态一直处于ContainerCreating
解决方案:
(1)若没有/etc/rhsm,则下载,命令为#yum install *rhsm*
(2)之后输入命令,#docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest
(3)最后重新输入命令#kubectl get pods,查看问题是否解决
如果问题还没有解决:
(1)#yum -y install wget(安装wget)
(2)#wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm(下载rpm包)
(3)命令一# 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(获取证书)
(4)输入命令# ll /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt和# ll /etc/rhsm/ca/redhat-uep.pem查看文件是否缺失
(5)重建rc