PersistentVolumeClaimSpecV1
Class sealed net10.0
Represents the specification of a Kubernetes PersistentVolumeClaim resource.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PersistentVolumeClaimSpecV1{ // ...} 10 members
Remarks
Section titled Remarks 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.
Constructors1
Section titled ConstructorsProperties9
Section titled PropertiesAccessModesgetList<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; setstring Gets or sets the name of the storage class required by the PersistentVolumeClaim.
VolumeAttributesClassNameget; setstring Represents the name of the class associated with the attributes of the volume in the PersistentVolumeClaim specification.
VolumeModeget; setstring Specifies the volume mode for a PersistentVolumeClaim. This determines how data in the volume is accessed by pods using the claim.
VolumeNameget; setstring Gets or sets the name of the specific volume to be bound to the PersistentVolumeClaim.