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
| Name | Type | Description |
|---|---|---|
| name | string | The name of the volume. This name is used to reference the volume within a pod's container definitions. |
| size | *resource.Quantity | An 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
| Type | Description |
|---|---|
v1.Volume | A Kubernetes Volume object representing an EmptyDir volume. |