V1PersistentVolumeSpec

March 28, 2026 ยท View on GitHub

PersistentVolumeSpec is the specification of a persistent volume.

Properties

NameTypeDescriptionNotes
access_modeslist[str]accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes[optional]
aws_elastic_block_storeV1AWSElasticBlockStoreVolumeSource[optional]
azure_diskV1AzureDiskVolumeSource[optional]
azure_fileV1AzureFilePersistentVolumeSource[optional]
capacitydict[str, str]capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity[optional]
cephfsV1CephFSPersistentVolumeSource[optional]
cinderV1CinderPersistentVolumeSource[optional]
claim_refV1ObjectReference[optional]
csiV1CSIPersistentVolumeSource[optional]
fcV1FCVolumeSource[optional]
flex_volumeV1FlexPersistentVolumeSource[optional]
flockerV1FlockerVolumeSource[optional]
gce_persistent_diskV1GCEPersistentDiskVolumeSource[optional]
glusterfsV1GlusterfsPersistentVolumeSource[optional]
host_pathV1HostPathVolumeSource[optional]
iscsiV1ISCSIPersistentVolumeSource[optional]
localV1LocalVolumeSource[optional]
mount_optionslist[str]mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options[optional]
nfsV1NFSVolumeSource[optional]
node_affinityV1VolumeNodeAffinity[optional]
persistent_volume_reclaim_policystrpersistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming[optional]
photon_persistent_diskV1PhotonPersistentDiskVolumeSource[optional]
portworx_volumeV1PortworxVolumeSource[optional]
quobyteV1QuobyteVolumeSource[optional]
rbdV1RBDPersistentVolumeSource[optional]
scale_ioV1ScaleIOPersistentVolumeSource[optional]
storage_class_namestrstorageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.[optional]
storageosV1StorageOSPersistentVolumeSource[optional]
volume_attributes_class_namestrName of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.[optional]
volume_modestrvolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.[optional]
vsphere_volumeV1VsphereVirtualDiskVolumeSource[optional]

[Back to Model list] [Back to API list] [Back to README]