# EphemeralVolumeSourceV1

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

Represents an ephemeral volume source in Kubernetes. An ephemeral volume is a temporary storage resource that is created and managed along with a pod's lifecycle. This object allows you to specify a PersistentVolumeClaim template to define the properties of the ephemeral volume.

## Definition

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

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

## Constructors

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

## Properties

- [VolumeClaimTemplate](/reference/api/csharp/aspire.hosting.kubernetes/ephemeralvolumesourcev1/properties.md#volumeclaimtemplate) : [PersistentVolumeClaimTemplateV1](/reference/api/csharp/aspire.hosting.kubernetes/persistentvolumeclaimtemplatev1.md) `get; set` -- VolumeClaimTemplate defines the specification of a PersistentVolumeClaim template that is created as part of an EphemeralVolumeSource. This property enables the dynamic provision of storage resources by defining the metadata and spec for the generated PersistentVolumeClaim objects.
