ImagePullPolicy
- class aws_cdk.aws_batch.ImagePullPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Determines when the image is pulled from the registry to launch a container.
Attributes
- 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.