@Generated(value="jsii-pacmak/1.34.0 (build 9b72778)", date="2021-09-21T00:27:37.467Z") @Stability(value=Stable) public interface EmptyDirVolumeOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmptyDirVolumeOptions.Builder
A builder for
EmptyDirVolumeOptions |
static class |
EmptyDirVolumeOptions.Jsii$Proxy
An implementation for
EmptyDirVolumeOptions |
| Modifier and Type | Method and 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.
|
@Stability(value=Stable) @Nullable default EmptyDirMedium getMedium()
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
@Stability(value=Stable) @Nullable default org.cdk8s.Size getSizeLimit()
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
@Stability(value=Stable) static EmptyDirVolumeOptions.Builder builder()
EmptyDirVolumeOptions.Builder of EmptyDirVolumeOptionsCopyright © 2021. All rights reserved.