Back-off pulling image "registry.access.redhat.com/rhel7/pod-infrastructure:latest"
报错信息:Jan 14 12:26:57 k8snode01 kubelet: E0114 12:26:57.2957358604 docker_manager.go:2159] Failed to create pod infra container: ErrImagePull; Skipping pod "nginx-3449338310-nmvsz_default(f67e741...
报错信息:
Jan 14 12:26:57 k8snode01 kubelet: E0114 12:26:57.295735 8604 docker_manager.go:2159] Failed to create pod infra container: ErrImagePull; Skipping pod "nginx-3449338310-nmvsz_default(f67e741e-36f2-11ea-98b8-000c299594c3)": 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)
Jan 14 12:26:57 k8snode01 kubelet: E0114 12:26:57.295770 8604 pod_workers.go:184] Error syncing pod f67e741e-36f2-11ea-98b8-000c299594c3, 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)"
Jan 14 12:41:16 k8snode01 dockerd-current: time="2020-01-14T12:41:16.156396599-05:00" level=error msg="Handler for GET /v1.26/images/registry.access.redhat.com/rhel7/pod-infrastructure:latest/json returned error: No such image: registry.access.redhat.com/rhel7/pod-infrastructure:latest"
Jan 14 12:41:16 k8snode01 kubelet: E0114 12:41:16.157271 17563 docker_manager.go:2159] Failed to create pod infra container: ImagePullBackOff; Skipping pod "nginx-3449338310-nmvsz_default(f67e741e-36f2-11ea-98b8-000c299594c3)": Back-off pulling image "registry.access.redhat.com/rhel7/pod-infrastructure:latest"
Jan 14 12:41:16 k8snode01 kubelet: E0114 12:41:16.157298 17563 pod_workers.go:184] Error syncing pod f67e741e-36f2-11ea-98b8-000c299594c3, skipping: failed to "StartContainer" for "POD" with ImagePullBackOff: "Back-off pulling image \"registry.access.redhat.com/rhel7/pod-infrastructure:latest\""
解决方法:
1.在node节点执行 yum install *rhsm* -y
2、直接获取 rpm文件 wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.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 这两个命令会生成/etc/rhsm/ca/redhat-uep.pem文件.
4、重新下载文件 docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest
更多推荐
所有评论(0)