Skip to main content

DataVolume

No overview available.

def DataVolume(
name: string,
size: *resource.Quantity
) - > v1.Volume

Creates a Kubernetes Volume object configured as an EmptyDir, which provides a temporary, empty directory for a pod to use. This is useful for scratch space or caching within a pod's lifecycle.

Parameters

NameTypeDescription
namestringThe name of the volume. This name is used to reference the volume within a pod's container definitions.
size*resource.QuantityAn optional size limit for the EmptyDir volume. If provided, the volume will be limited to this quantity of storage. If null, no size limit is imposed.

Returns

TypeDescription
v1.VolumeA Kubernetes Volume object representing an EmptyDir volume.