enum ImagePullPolicy
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.ImagePullPolicy |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#ImagePullPolicy |
![]() | software.amazon.awscdk.services.batch.ImagePullPolicy |
![]() | aws_cdk.aws_batch.ImagePullPolicy |
![]() | aws-cdk-lib » aws_batch » ImagePullPolicy |
Determines when the image is pulled from the registry to launch a container.
Members
Name | Description |
---|---|
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.
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