Interface IEmptyDirVolumeOptions
Options for a Kubernetes EmptyDir volume.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEmptyDirVolumeOptions : IEksVolumeOptions
Syntax (vb)
Public Interface IEmptyDirVolumeOptions
Inherits IEksVolumeOptions
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
ExampleMetadata: infused
Examples
var jobDefn = new EksJobDefinition(this, "eksf2", new EksJobDefinitionProps {
Container = new EksContainerDefinition(this, "container", new EksContainerDefinitionProps {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample"),
Volumes = new [] { EksVolume.EmptyDir(new EmptyDirVolumeOptions {
Name = "myEmptyDirVolume",
MountPath = "/mount/path",
Medium = EmptyDirMediumType.MEMORY,
Readonly = true,
SizeLimit = Size.Mebibytes(2048)
}) }
})
});
Synopsis
Properties
Medium | The storage type to use for this Volume. |
Size |
The maximum size for this Volume. |
Properties
Medium
The storage type to use for this Volume.
virtual Nullable<EmptyDirMediumType> Medium { get; }
Property Value
System.
Remarks
Default: EmptyDirMediumType.DISK
SizeLimit
The maximum size for this Volume.
virtual Size SizeLimit { get; }
Property Value
Remarks
Default: - no size limit