@Stability(value=Stable) public static final class EmptyDirVolumeOptions.Builder extends Object implements software.amazon.jsii.Builder<EmptyDirVolumeOptions>
EmptyDirVolumeOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EmptyDirVolumeOptions |
build()
Builds the configured instance.
|
EmptyDirVolumeOptions.Builder |
medium(EmptyDirMedium medium)
Sets the value of
EmptyDirVolumeOptions.getMedium() |
EmptyDirVolumeOptions.Builder |
sizeLimit(org.cdk8s.Size sizeLimit)
Sets the value of
EmptyDirVolumeOptions.getSizeLimit() |
@Stability(value=Stable) public EmptyDirVolumeOptions.Builder medium(EmptyDirMedium medium)
EmptyDirVolumeOptions.getMedium()medium - 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.this@Stability(value=Stable) public EmptyDirVolumeOptions.Builder sizeLimit(org.cdk8s.Size sizeLimit)
EmptyDirVolumeOptions.getSizeLimit()sizeLimit - 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.this@Stability(value=Stable) public EmptyDirVolumeOptions build()
build in interface software.amazon.jsii.Builder<EmptyDirVolumeOptions>EmptyDirVolumeOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.