k8s创建pod失败
问题现象:
kubectl describe pod static-web查看信息,显示如下:
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)”
解决方案:
yum install rhsm -y
安装完成之后,再次查看pods,发现已运行成功。