# LocalVolumeSourceV1

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

Represents a local volume source in Kubernetes. This type is used to configure a PersistentVolume that is backed by local storage.

## Definition

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

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

## Remarks

Local storage can only be used as a PersistentVolume when the nodeAffinity is also set. The local volume does not support all Kubernetes volume features, such as dynamic provisioning. Local volumes can be beneficial for applications that require high-performance storage and do not require replication.

## Constructors

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

## Properties

- [FsType](/reference/api/csharp/aspire.hosting.kubernetes/localvolumesourcev1/properties.md#fstype) : `string` `get; set` -- Gets or sets the filesystem type to be mounted. Examples of valid values include "ext4", "xfs", "ntfs", among others. If not specified, the default filesystem type for the operating system will be used.
- [Path](/reference/api/csharp/aspire.hosting.kubernetes/localvolumesourcev1/properties.md#path) : `string` `get; set` -- Gets or sets the path to the local volume on the host. This value is required and should specify the file system or directory to be used by the volume.
