Package org.cdk8s.plus24
Interface EmptyDirVolumeOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmptyDirVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-15T15:42:36.337Z") @Stability(Stable) public interface EmptyDirVolumeOptions extends software.amazon.jsii.JsiiSerializable
Options for volumes populated with an empty directory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EmptyDirVolumeOptions.Builder
A builder forEmptyDirVolumeOptions
static class
EmptyDirVolumeOptions.Jsii$Proxy
An implementation forEmptyDirVolumeOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static EmptyDirVolumeOptions.Builder
builder()
default EmptyDirMedium
getMedium()
By default, emptyDir volumes are stored on whatever medium is backing the node - that might be disk or SSD or network storage, depending on your environment.default org.cdk8s.Size
getSizeLimit()
Total amount of local storage required for this EmptyDir volume.
-
-
-
Method Detail
-
getMedium
@Stability(Stable) @Nullable default EmptyDirMedium getMedium()
By default, emptyDir volumes are stored on whatever medium is backing the node - that might be disk or SSD or network storage, depending on your environment.However, you can set the emptyDir.medium field to
EmptyDirMedium.MEMORY
to tell Kubernetes to mount a tmpfs (RAM-backed filesystem) for you instead. While tmpfs is very fast, be aware that unlike disks, tmpfs is cleared on node reboot and any files you write will count against your Container's memory limit.Default: EmptyDirMedium.DEFAULT
-
getSizeLimit
@Stability(Stable) @Nullable default org.cdk8s.Size getSizeLimit()
Total amount of local storage required for this EmptyDir volume.The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod.
Default: - limit is undefined
-
builder
@Stability(Stable) static EmptyDirVolumeOptions.Builder builder()
- Returns:
- a
EmptyDirVolumeOptions.Builder
ofEmptyDirVolumeOptions
-
-