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
| Name | Type | Description |
|---|---|---|
| name | string | The name of the volume. This name will be used to reference the volume within a pod's containers. |
| size | *resource.Quantity | A pointer to a resource.Quantity object specifying the size limit for the EmptyDir volume. If nil, no size limit is applied. |
Returns
| Type | Description |
|---|---|
v1.Volume | A Kubernetes Volume object representing an EmptyDir volume. |