image imagePullPolicy拉取策略
文章目录Updating Imageshttps://kubernetes.io/docs/concepts/containers/images/Updating ImagesThe default pull policy is IfNotPresent which causes the Kubelet to skip pulling an image if it already exist...
文章目录
https://kubernetes.io/docs/concepts/containers/images/
https://kubernetes.io/docs/concepts/configuration/overview/#container-images
Container Images
The imagePullPolicy and the tag of the image affect when the kubelet attempts to pull the specified image.
-
imagePullPolicy: IfNotPresent: the image is pulled only if it is not already present locally.
-
imagePullPolicy: Always: the image is pulled every time the pod is started.
-
imagePullPolicy is omitted and either the image tag is :latest or it is omitted: Always is applied.
-
imagePullPolicy is omitted and the image tag is present but not :latest: IfNotPresent is applied.
-
imagePullPolicy: Never: the image is assumed to exist locally. No attempt is made to pull the image.
更多推荐
所有评论(0)