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: (Get https://registry.access.redhat.com/v1/_ping: dial tcp 0.0.0.0:443: connect: connection refused)
搭建好k8s之后,创建pod的时候一直卡在这里,个人猜想因为国内网络不通,所以无法下载到“ registry.access.redhat.com/rhel7/pod-infrastructure:latest”镜像,所以下载同名的其他镜像,在hub.docker.com上找到有同名的镜像,如下图。
所以我在k8s的node节点先下载此镜像
docker pull tianyebj/pod-infrastructure
下载完成之后,打一个无法下载成功的镜像的tag
docker tag docker.io/tianyebj/pod-infrastructure registry.access.redhat.com/rhel7/pod-infrastructure
再重新创建pod,不出意外可以成功创建pod了