How to retry image pull in a kubernetes Pods?

前端 未结 7 1086
挽巷
挽巷 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:39

    Most probably the issue of ImagePullBackOff is due to either the image not being present or issue with the pod YAML file.

    What I will do is this

    kubectl get pod -n $namespace $POD_NAME --export > pod.yaml | kubectl -f apply -
    

    I would also see the pod.yaml to see the why the earlier pod didn't work

    0 讨论(0)
提交回复
热议问题