How to retry image pull in a kubernetes Pods?

前端 未结 7 1094
挽巷
挽巷 2021-01-29 23:49

I am new to kubernetes. I have an issue in the pods. When I run the command

 kubectl get pods

Result:

NAME                   RE         


        
7条回答
  •  时光取名叫无心
    2021-01-30 00:30

    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 
    

提交回复
热议问题