# PersistentVolume Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [PersistentVolume](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolume.md)
- Kind: `Properties`
- Members: `1`

Represents a PersistentVolume resource in Kubernetes.

## Spec

- Name: `Spec`
- Modifiers: `get; set`
- Returns: [PersistentVolumeSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumespecv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PersistentVolumeV1.cs)

Gets or sets the specification for the Kubernetes PersistentVolume resource. This property defines the detailed configuration of the PersistentVolume, including storage capacity, access modes, volume mode, node affinity, and reclaim policy. The specification provides granular control over the behavior and capabilities of the PersistentVolume.

```csharp
public PersistentVolumeSpecV1 Spec { get; set; }
```
