Struct k8s_openapi::v1_11::api::core::v1::PersistentVolumeSpec[][src]

pub struct PersistentVolumeSpec {
    pub access_modes: Option<Vec<String>>,
    pub aws_elastic_block_store: Option<AWSElasticBlockStoreVolumeSource>,
    pub azure_disk: Option<AzureDiskVolumeSource>,
    pub azure_file: Option<AzureFilePersistentVolumeSource>,
    pub capacity: Option<BTreeMap<String, Quantity>>,
    pub cephfs: Option<CephFSPersistentVolumeSource>,
    pub cinder: Option<CinderPersistentVolumeSource>,
    pub claim_ref: Option<ObjectReference>,
    pub csi: Option<CSIPersistentVolumeSource>,
    pub fc: Option<FCVolumeSource>,
    pub flex_volume: Option<FlexPersistentVolumeSource>,
    pub flocker: Option<FlockerVolumeSource>,
    pub gce_persistent_disk: Option<GCEPersistentDiskVolumeSource>,
    pub glusterfs: Option<GlusterfsVolumeSource>,
    pub host_path: Option<HostPathVolumeSource>,
    pub iscsi: Option<ISCSIPersistentVolumeSource>,
    pub local: Option<LocalVolumeSource>,
    pub mount_options: Option<Vec<String>>,
    pub nfs: Option<NFSVolumeSource>,
    pub node_affinity: Option<VolumeNodeAffinity>,
    pub persistent_volume_reclaim_policy: Option<String>,
    pub photon_persistent_disk: Option<PhotonPersistentDiskVolumeSource>,
    pub portworx_volume: Option<PortworxVolumeSource>,
    pub quobyte: Option<QuobyteVolumeSource>,
    pub rbd: Option<RBDPersistentVolumeSource>,
    pub scale_io: Option<ScaleIOPersistentVolumeSource>,
    pub storage_class_name: Option<String>,
    pub storageos: Option<StorageOSPersistentVolumeSource>,
    pub volume_mode: Option<String>,
    pub vsphere_volume: Option<VsphereVirtualDiskVolumeSource>,
}

PersistentVolumeSpec is the specification of a persistent volume.

Fields

AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes

AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

AzureFile represents an Azure File Service mount on the host and bind mount to the pod.

A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity

CephFS represents a Ceph FS mount on the host that shares a pod's lifetime

Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md

ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding

CSI represents storage that handled by an external CSI driver (Beta feature).

FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.

FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running

GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md

HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.

Local represents directly-attached storage with node affinity

A 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

NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.

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

PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine

PortworxVolume represents a portworx volume attached and mounted on kubelets host machine

Quobyte represents a Quobyte mount on the host that shares a pod's lifetime

RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md

ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.

Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.

StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md

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. This is an alpha feature and may change in the future.

VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine

Trait Implementations

impl Clone for PersistentVolumeSpec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PersistentVolumeSpec
[src]

Formats the value using the given formatter. Read more

impl Default for PersistentVolumeSpec
[src]

Returns the "default value" for a type. Read more

impl PartialEq for PersistentVolumeSpec
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for PersistentVolumeSpec
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PersistentVolumeSpec
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations