文章目录


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.

Logo

开源、云原生的融合云平台

更多推荐