# PersistentVolumeClaimTemplateV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PersistentVolumeClaimTemplateV1.cs)

Represents a template for creating a PersistentVolumeClaim (PVC) in a Kubernetes environment.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class PersistentVolumeClaimTemplateV1
{
    // ...
}
```

## Remarks

This class allows defining metadata and specification for a PersistentVolumeClaim. It is typically used in scenarios where PVCs need to be dynamically created, such as in the context of ephemeral volumes or StatefulSets.

## Constructors

- [PersistentVolumeClaimTemplateV1](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimtemplatev1/constructors.md#constructor)

## Properties

- [Metadata](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimtemplatev1/properties.md#metadata) : [ObjectMetaV1](/reference/api/csharp/aspire.hosting.kubernetes/objectmetav1.md) `get; set` -- Gets or sets the metadata for the PersistentVolumeClaim template. The metadata provides additional information about the resource, including fields such as name, namespace, labels, annotations, and more.
- [Spec](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimtemplatev1/properties.md#spec) : [PersistentVolumeClaimSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimspecv1.md) `get; set` -- Gets or sets the specification for the PersistentVolumeClaim (PVC) resource.
