@aws-cdk_aws-batch-alpha.ImagePullPolicy

enum ImagePullPolicy ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.ImagePullPolicy
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#ImagePullPolicy
Javasoftware.amazon.awscdk.services.batch.alpha.ImagePullPolicy
Pythonaws_cdk.aws_batch_alpha.ImagePullPolicy
TypeScript (source)@aws-cdk/aws-batch-alpha ยป ImagePullPolicy

Determines when the image is pulled from the registry to launch a container.

Members

NameDescription
ALWAYS ๐Ÿ”นEvery time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.
IF_NOT_PRESENT ๐Ÿ”นThe image is pulled only if it is not already present locally.
NEVER ๐Ÿ”นThe kubelet does not try fetching the image.

ALWAYS ๐Ÿ”น

Every time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.

If the kubelet has a container image with that exact digest cached locally, the kubelet uses its cached image; otherwise, the kubelet pulls the image with the resolved digest, and uses that image to launch the container.

See also: https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-by-digest-immutable-identifier


IF_NOT_PRESENT ๐Ÿ”น

The image is pulled only if it is not already present locally.


NEVER ๐Ÿ”น

The kubelet does not try fetching the image.

If the image is somehow already present locally, the kubelet attempts to start the container; otherwise, startup fails. See pre-pulled images for more details.

See also: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images