Class ImagePullPolicy
Determines when the image is pulled from the registry to launch a container.
Inheritance
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ImagePullPolicy : Enum
Syntax (vb)
Public NotInheritable Class ImagePullPolicy
Inherits
Enum
Synopsis
Fields
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. |
value__ |
Fields
ALWAYS
Every time the kubelet launches a container, the kubelet queries the container image registry to resolve the name to an image digest.
public const ImagePullPolicy ALWAYS
Field Value
Type | Description |
---|---|
ImagePullPolicy |
Remarks
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.
public const ImagePullPolicy IF_NOT_PRESENT
Field Value
Type | Description |
---|---|
ImagePullPolicy |
NEVER
The kubelet does not try fetching the image.
public const ImagePullPolicy NEVER
Field Value
Type | Description |
---|---|
ImagePullPolicy |
Remarks
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: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |