image imagePullPolicy拉取策略

文章目錄


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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章