Skip to content
Docs Try Aspire

PersistentVolumeClaimTemplateV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a template for creating a PersistentVolumeClaim (PVC) in a Kubernetes environment.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PersistentVolumeClaimTemplateV1
{
// ...
}
This class allows defining metadata and specification for a PersistentVolumeClaim. It is typically used in scenarios where PVCs need to be dynamically created, such as in the context of ephemeral volumes or StatefulSets.
View all constructors
Metadataget; set
Gets or sets the metadata for the PersistentVolumeClaim template. The metadata provides additional information about the resource, including fields such as name, namespace, labels, annotations, and more.
Specget; set
Gets or sets the specification for the PersistentVolumeClaim (PVC) resource.
View all properties