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 volume. This function is used to define a temporary, ephemeral storage volume for a pod.

Parameters

NameTypeDescription
namestringThe name of the volume. This name will be used to reference the volume within a pod's containers.
size*resource.QuantityA pointer to a resource.Quantity object specifying the size limit for the EmptyDir volume. If nil, no size limit is applied.

Returns

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