# EphemeralVolumeSourceV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/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.
