Package org.cdk8s.plus20
Interface EmptyDirVolumeOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmptyDirVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.54.0 (build b1b977a)", date="2022-03-07T02:28:27.930Z") @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 classEmptyDirVolumeOptions.BuilderA builder forEmptyDirVolumeOptionsstatic classEmptyDirVolumeOptions.Jsii$ProxyAn implementation forEmptyDirVolumeOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static EmptyDirVolumeOptions.Builderbuilder()default EmptyDirMediumgetMedium()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.SizegetSizeLimit()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.MEMORYto 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.BuilderofEmptyDirVolumeOptions
-
-