Skip to content
Docs Try Aspire

PersistentVolumeClaimSpecV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents the specification of a Kubernetes PersistentVolumeClaim resource.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PersistentVolumeClaimSpecV1
{
// ...
}
A PersistentVolumeClaim (PVC) is a request for storage by a user. It serves as an abstraction to request specific storage with desired attributes such as size and access modes. This class defines the set of properties that can be configured for a PVC.
View all constructors
AccessModesget
List<string>
Defines the access modes for a Persistent Volume Claim.
DataSourceget; set
Represents the data source for a Persistent Volume Claim (PVC) in Kubernetes.
DataSourceRefget; set
Specifies a reference to a data source object for the Persistent Volume Claim (PVC). This property allows referencing an object that can provision the volume dynamically, such as an external volume controller or resource in the Kubernetes cluster.
Resourcesget; set
Gets or sets the resource requirements for the volume. Defines the requested and limit capacities for the volume resources, including storage and other related attributes.
Selectorget; set
Gets or sets the label selector used to filter Kubernetes resources.
StorageClassNameget; set
string
Gets or sets the name of the storage class required by the PersistentVolumeClaim.
VolumeAttributesClassNameget; set
string
Represents the name of the class associated with the attributes of the volume in the PersistentVolumeClaim specification.
VolumeModeget; set
string
Specifies the volume mode for a PersistentVolumeClaim. This determines how data in the volume is accessed by pods using the claim.
VolumeNameget; set
string
Gets or sets the name of the specific volume to be bound to the PersistentVolumeClaim.
View all properties