PersistentVolumeSpec is the specification of a persistent volume.
| Name | Type | Description | Notes |
|---|---|---|---|
| access_modes | List[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_store | V1AWSElasticBlockStoreVolumeSource | [optional] | |
| azure_disk | V1AzureDiskVolumeSource | [optional] | |
| azure_file | V1AzureFilePersistentVolumeSource | [optional] | |
| capacity | Dict[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] |
| cephfs | V1CephFSPersistentVolumeSource | [optional] | |
| cinder | V1CinderPersistentVolumeSource | [optional] | |
| claim_ref | V1ObjectReference | [optional] | |
| csi | V1CSIPersistentVolumeSource | [optional] | |
| fc | V1FCVolumeSource | [optional] | |
| flex_volume | V1FlexPersistentVolumeSource | [optional] | |
| flocker | V1FlockerVolumeSource | [optional] | |
| gce_persistent_disk | V1GCEPersistentDiskVolumeSource | [optional] | |
| glusterfs | V1GlusterfsPersistentVolumeSource | [optional] | |
| host_path | V1HostPathVolumeSource | [optional] | |
| iscsi | V1ISCSIPersistentVolumeSource | [optional] | |
| local | V1LocalVolumeSource | [optional] | |
| mount_options | List[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] |
| nfs | V1NFSVolumeSource | [optional] | |
| node_affinity | V1VolumeNodeAffinity | [optional] | |
| persistent_volume_reclaim_policy | str | persistentVolumeReclaimPolicy 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_disk | V1PhotonPersistentDiskVolumeSource | [optional] | |
| portworx_volume | V1PortworxVolumeSource | [optional] | |
| quobyte | V1QuobyteVolumeSource | [optional] | |
| rbd | V1RBDPersistentVolumeSource | [optional] | |
| scale_io | V1ScaleIOPersistentVolumeSource | [optional] | |
| storage_class_name | str | storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] |
| storageos | V1StorageOSPersistentVolumeSource | [optional] | |
| volume_attributes_class_name | str | Name 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_mode | str | volumeMode 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_volume | V1VsphereVirtualDiskVolumeSource | [optional] |
from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec
# TODO update the JSON string below
json = "{}"
# create an instance of V1PersistentVolumeSpec from a JSON string
v1_persistent_volume_spec_instance = V1PersistentVolumeSpec.from_json(json)
# print the JSON string representation of the object
print(V1PersistentVolumeSpec.to_json())
# convert the object into a dict
v1_persistent_volume_spec_dict = v1_persistent_volume_spec_instance.to_dict()
# create an instance of V1PersistentVolumeSpec from a dict
v1_persistent_volume_spec_from_dict = V1PersistentVolumeSpec.from_dict(v1_persistent_volume_spec_dict)