如何重试Kubernetes Pod中的图像? [英] How to retry image pull in a kubernetes Pods?
本文介绍了如何重试Kubernetes Pod中的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是kubernetes的新手.豆荚里有个问题.当我运行命令
I am new to kubernetes. I have an issue in the pods. When I run the command
kubectl get pods
结果:
NAME READY STATUS RESTARTS AGE
mysql-apim-db-1viwg 1/1 Running 1 20h
mysql-govdb-qioee 1/1 Running 1 20h
mysql-userdb-l8q8c 1/1 Running 0 20h
wso2am-default-813fy 0/1 ImagePullBackOff 0 20h
由于"wso2am-default-813fy"节点的问题,我需要重新启动它.有什么建议吗?
Due to an issue of "wso2am-default-813fy" node, I need to restart it. Any suggestion?
推荐答案
通常,在"ImagePullBackOff"的情况下,会在几秒钟/分钟后重试.如果您想手动重试,则可以删除旧的窗格并重新创建该窗格.删除和重新创建广告连播的单行命令为:
Usually in case of "ImagePullBackOff" it's retried after few seconds/minutes. In case you want to try again manually you can delete the old pod and recreate the pod. The one line command to delete and recreate the pod would be:
kubectl replace --force -f <yml_file_describing_pod>
这篇关于如何重试Kubernetes Pod中的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文