Share via


PersistentVolumeClaimSpecV1 Class

Definition

Represents the specification of a Kubernetes PersistentVolumeClaim resource.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class PersistentVolumeClaimSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type PersistentVolumeClaimSpecV1 = class
Public NotInheritable Class PersistentVolumeClaimSpecV1
Inheritance
PersistentVolumeClaimSpecV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

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.

Constructors

PersistentVolumeClaimSpecV1()

Properties

AccessModes

Defines the access modes for a Persistent Volume Claim.

DataSource

Represents the data source for a Persistent Volume Claim (PVC) in Kubernetes.

DataSourceRef

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.

Resources

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.

Selector

Gets or sets the label selector used to filter Kubernetes resources.

StorageClassName

Gets or sets the name of the storage class required by the PersistentVolumeClaim.

VolumeAttributesClassName

Represents the name of the class associated with the attributes of the volume in the PersistentVolumeClaim specification.

VolumeMode

Specifies the volume mode for a PersistentVolumeClaim. This determines how data in the volume is accessed by pods using the claim.

VolumeName

Gets or sets the name of the specific volume to be bound to the PersistentVolumeClaim.

Applies to