What is the meaning of ImagePullBackOff status on a Kubernetes pod?

前端 未结 9 1465
梦毁少年i
梦毁少年i 2021-02-02 04:49

I\'m trying to run my first kubernetes pod locally. I\'ve run the following command (from here):

export ARCH=amd64
docker run -d \\
    --volume=/:/rootfs:ro \\
         


        
9条回答
  •  -上瘾入骨i
    2021-02-02 05:28

    The issue arises when the image is not present on the cluster and k8s engine is going to pull the respective registry. k8s Engine enables 3 types of ImagePullPolicy mentioned :

    1. Always : It always pull the image in container irrespective of changes in the image
    2. Never : It will never pull the new image on the container
    3. IfNotPresent : It will pull the new image in cluster if the image is not present.

    Best Practices : It is always recommended to tag the new image in both docker file as well as k8s deployment file. So That it can pull the new image in container.

提交回复
热议问题