运行命令
kubectl get pod
pod的status是ContainerCreating,Ready处于0/1
[root@localhost ca]# kubectl get pod
NAME READY STATUS RESTARTS AGE
my-nginx-379829228-mmsww 0/1 ContainerCreating 0 1h
错误信息为
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)"
根据网上资料进行手工pull,提示报错误
/etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory
cd到/etc/docker/certs.d/registry.access.redhat.com/看到有一个redhat-ca.crt文件,使用 l