其中最主要的問題是:details: (open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory)python
解決方案:mysql
查看/etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt (該連接就是上圖中的說明) 是一個軟連接,可是連接過去後並無真實的/etc/rhsm,因此須要使用yum安裝:sql
yum install *rhsm*docker
安裝完成後,執行一下docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latestcentos
若是依然報錯,可參考下面的方案:get
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.pemit
這兩個命令會生成/etc/rhsm/ca/redhat-uep.pem文件.io
順得的話會獲得下面的結果。ast
[root@localhost]# docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest
Trying to pull repository registry.access.redhat.com/rhel7/pod-infrastructure ...
latest: Pulling from registry.access.redhat.com/rhel7/pod-infrastructure
26e5ed6899db: Pull complete
66dbe984a319: Pull complete
9138e7863e08: Pull complete
Digest: sha256:92d43c37297da3ab187fc2b9e9ebfb243c1110d446c783ae1b989088495db931
Status: Downloaded newer image for registry.access.redhat.com/rhel7/pod-infrastructure:latest
刪除原來建立的rc
[root@localhost /]# kubectl delete -f mysql-rc.yaml
從新建立
[root@localhost /]# kubectl create -f mysql-rc.yaml
replicationcontroller "mysql" created
再次查看狀態
[root@localhost /]# kubectl get pod
NAME READY STATUS RESTARTS AGE
mysql-b8m2q 1/1 Running 0 27m