[英]Kubernetes showing Image Pull Error while scheduling pods
I have configured a secret on Kubernetes and inside the node, I am able to pull an image with docker pull
perfectly. 我已经在Kubernetes上以及节点内部配置了一个秘密,我能够使用
docker pull
完美地拉取映像。 But when kubectl tries to schedule a pod on the node it shows image pull backoff error. 但是,当kubectl尝试在节点上调度pod时,它会显示图像回退错误。 Is there any setting needs to be done while bootstrapping.
引导时是否需要进行任何设置。 I am using community AMI on AWS for Kubernetes node.
我正在AWS上为Kubernetes节点使用社区AMI。
Try this: 尝试这个:
kubectl describe pod-name
- see event log at the end. kubectl describe pod-name
参见最后的事件日志。 it should show series of events starting from initial image pull to subsequent attempts and may continue to restart in order to achieve desired state as per deployment record kubectl logs pod-name
kubectl logs pod-name
kubectl exec -it pod-name
(if single container) or kubectl exec -it pod-name -c container-name
. kubectl exec -it pod-name
(如果是单个容器)或kubectl exec -it pod-name -c container-name
来查看运行中的容器以进行更多故障排除。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.