Kubectl get pods 一直处于 Status:containerCreating

简介: Kubectl get pods 一直处于 Status:containerCreating
kubectl describe pod PODS_Name

报错信息
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)"

解决方法:

[root@localhost ~]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm

[root@localhost ~]# 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

[root@localhost ~]# kubectl delete -f 原有的模板

重新创建即可

目录
相关文章
|
数据库 OceanBase
"deployed" 状态
"deployed" 状态
101 1
|
Kubernetes 容器 Perl
【kubernetes】解决:pvc 一直处于Terminating 无法删除的问题
【kubernetes】解决:pvc 一直处于Terminating 无法删除的问题
892 0
|
存储 Kubernetes Docker
k8s--pod 介绍
k8s--pod 介绍
k8s--pod 介绍
|
3月前
|
Kubernetes Perl 容器
在K8S中,replicaset 和deploy有何区别?
在K8S中,replicaset 和deploy有何区别?
|
3月前
|
运维 Kubernetes 容器
在K8S中,replicaset和deploy的区别?
在K8S中,replicaset和deploy的区别?
|
3月前
|
Kubernetes API Perl
在K8S中,svc关联pod失败原因有哪些?
在K8S中,svc关联pod失败原因有哪些?
|
6月前
|
Shell 应用服务中间件 Docker
kubectl创建简单的pod
kubectl创建简单的pod
|
6月前
|
Shell Perl 容器
kubectl exec -it etcd-master -n kube-system /bin/bashkubectl exec [POD] [COMMAND]
kubectl exec -it etcd-master -n kube-system /bin/bashkubectl exec [POD] [COMMAND]
42 0
|
Kubernetes 网络协议 Perl
Kubernetes 优雅终止 pod
Kubernetes 优雅终止 pod
155 1
|
Kubernetes Docker 容器
Kubernetes集群部署中安装Pods网络插件一直显示Pending状态解决
Kubernetes集群部署中安装Pods网络插件一直显示Pending状态解决
301 0