# PersistentVolumeClaimVolumeSourceV1

- 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/PersistentVolumeClaimVolumeSourceV1.cs)

Represents the configuration for mounting a PersistentVolumeClaim as a volume source.

## Definition

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

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

## Constructors

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

## Properties

- [ClaimName](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimvolumesourcev1/properties.md#claimname) : `string` `get; set` -- Gets or sets the name of the Persistent Volume Claim (PVC). This property specifies the name of the PVC that will be used as a volume source.
- [ReadOnly](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimvolumesourcev1/properties.md#readonly) : `bool?` `get; set` -- Specifies whether the volume is mounted as read-only. If set to true, write operations on the volume are disabled. If not set or set to false, the volume can be mounted with write permissions.
