kubernetes如果遇到ImagePullBackOff该如何排查呢?
状态
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
sentry-web 0/1 ImagePullBackOff 0 4m55s
ImagePullBackOff代表拉取镜像时被阻塞,最常见的原因是镜像不存在。
原因
使用 kubectl describe pod sentry-web 查看启动细节:
$ kubectl describe pod sentry-web
Name: sentry-web
Namespace: default
...省略
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 4m50s default-scheduler Successfully assigned default/sentry-web to kind-control-plane
Normal Pulling 3m14s

本文指导如何排查Kubernetes Pod遇到ImagePullBackOff问题,通过检查事件、配置错误和设置镜像策略,解决本地镜像拉取失败。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



