# io.k8s.api.core.v1.PersistentVolumeClaimTemplate

From **Kubernetes**.

PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.

- Type: `object`

## Properties

### `metadata`

- Required: false
- Default: `{}`

May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.

### `spec`

- Required: true
- Default: `{}`

The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.

## JSON Schema

```json
{"description":"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.","properties":{"metadata":{"allOf":[{"$ref":"#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"}],"default":{},"description":"May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation."},"spec":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.core.v1.PersistentVolumeClaimSpec"}],"default":{},"description":"The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here."}},"required":["spec"],"type":"object"}
```
