How to retry image pull in a kubernetes Pods?

前端 未结 7 1087
挽巷
挽巷 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:18

    If the Pod is part of a Deployment or Service, deleting it will restart the Pod and, potentially, place it onto another node:

    $ kubectl delete po $POD_NAME

    replace it if it's an individual Pod:

    $ kubectl get po -n $namespace $POD_NAME -o yaml | kubectl replace -f -

提交回复
热议问题