Struct k8s_openapi::v1_7::kubernetes::pkg::api::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<AzureFileVolumeSource>,
pub capacity: Option<BTreeMap<String, Quantity>>,
pub cephfs: Option<CephFSVolumeSource>,
pub cinder: Option<CinderVolumeSource>,
pub claim_ref: Option<ObjectReference>,
pub fc: Option<FCVolumeSource>,
pub flex_volume: Option<FlexVolumeSource>,
pub flocker: Option<FlockerVolumeSource>,
pub gce_persistent_disk: Option<GCEPersistentDiskVolumeSource>,
pub glusterfs: Option<GlusterfsVolumeSource>,
pub host_path: Option<HostPathVolumeSource>,
pub iscsi: Option<ISCSIVolumeSource>,
pub local: Option<LocalVolumeSource>,
pub nfs: Option<NFSVolumeSource>,
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<RBDVolumeSource>,
pub scale_io: Option<ScaleIOVolumeSource>,
pub storage_class_name: Option<String>,
pub storageos: Option<StorageOSPersistentVolumeSource>,
pub vsphere_volume: Option<VsphereVirtualDiskVolumeSource>,
}PersistentVolumeSpec is the specification of a persistent volume.
Fields
access_modes: Option<Vec<String>>
AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
aws_elastic_block_store: Option<AWSElasticBlockStoreVolumeSource>
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
azure_disk: Option<AzureDiskVolumeSource>
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
azure_file: Option<AzureFileVolumeSource>
AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
capacity: Option<BTreeMap<String, Quantity>>
A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
cephfs: Option<CephFSVolumeSource>
CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
cinder: Option<CinderVolumeSource>
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
claim_ref: Option<ObjectReference>
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
fc: Option<FCVolumeSource>
FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
flex_volume: Option<FlexVolumeSource>
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
flocker: Option<FlockerVolumeSource>
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
gce_persistent_disk: Option<GCEPersistentDiskVolumeSource>
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: Option<GlusterfsVolumeSource>
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
host_path: Option<HostPathVolumeSource>
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: Option<ISCSIVolumeSource>
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: Option<LocalVolumeSource>
Local represents directly-attached storage with node affinity
nfs: Option<NFSVolumeSource>
NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
persistent_volume_reclaim_policy: Option<String>
What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
photon_persistent_disk: Option<PhotonPersistentDiskVolumeSource>
PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
portworx_volume: Option<PortworxVolumeSource>
PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
quobyte: Option<QuobyteVolumeSource>
Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
rbd: Option<RBDVolumeSource>
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
scale_io: Option<ScaleIOVolumeSource>
ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
storage_class_name: Option<String>
Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
storageos: Option<StorageOSPersistentVolumeSource>
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
vsphere_volume: Option<VsphereVirtualDiskVolumeSource>
VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
Trait Implementations
impl Clone for PersistentVolumeSpec[src]
impl Clone for PersistentVolumeSpecfn clone(&self) -> PersistentVolumeSpec[src]
fn clone(&self) -> PersistentVolumeSpecReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for PersistentVolumeSpec[src]
impl Debug for PersistentVolumeSpecfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for PersistentVolumeSpec[src]
impl Default for PersistentVolumeSpecfn default() -> PersistentVolumeSpec[src]
fn default() -> PersistentVolumeSpecReturns the "default value" for a type. Read more
impl PartialEq for PersistentVolumeSpec[src]
impl PartialEq for PersistentVolumeSpecfn eq(&self, other: &PersistentVolumeSpec) -> bool[src]
fn eq(&self, other: &PersistentVolumeSpec) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PersistentVolumeSpec) -> bool[src]
fn ne(&self, other: &PersistentVolumeSpec) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for PersistentVolumeSpec[src]
impl<'de> Deserialize<'de> for PersistentVolumeSpecfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for PersistentVolumeSpec[src]
impl Serialize for PersistentVolumeSpecAuto Trait Implementations
impl Send for PersistentVolumeSpec
impl Send for PersistentVolumeSpecimpl Sync for PersistentVolumeSpec
impl Sync for PersistentVolumeSpec