Struct k8s_openapi::api::core::v1::Volume [−][src]
pub struct Volume {}Show fields
pub aws_elastic_block_store: Option<AWSElasticBlockStoreVolumeSource>, pub azure_disk: Option<AzureDiskVolumeSource>, pub azure_file: Option<AzureFileVolumeSource>, pub cephfs: Option<CephFSVolumeSource>, pub cinder: Option<CinderVolumeSource>, pub config_map: Option<ConfigMapVolumeSource>, pub csi: Option<CSIVolumeSource>, pub downward_api: Option<DownwardAPIVolumeSource>, pub empty_dir: Option<EmptyDirVolumeSource>, pub fc: Option<FCVolumeSource>, pub flex_volume: Option<FlexVolumeSource>, pub flocker: Option<FlockerVolumeSource>, pub gce_persistent_disk: Option<GCEPersistentDiskVolumeSource>, pub git_repo: Option<GitRepoVolumeSource>, pub glusterfs: Option<GlusterfsVolumeSource>, pub host_path: Option<HostPathVolumeSource>, pub iscsi: Option<ISCSIVolumeSource>, pub name: String, pub nfs: Option<NFSVolumeSource>, pub persistent_volume_claim: Option<PersistentVolumeClaimVolumeSource>, pub photon_persistent_disk: Option<PhotonPersistentDiskVolumeSource>, pub portworx_volume: Option<PortworxVolumeSource>, pub projected: Option<ProjectedVolumeSource>, pub quobyte: Option<QuobyteVolumeSource>, pub rbd: Option<RBDVolumeSource>, pub scale_io: Option<ScaleIOVolumeSource>, pub secret: Option<SecretVolumeSource>, pub storageos: Option<StorageOSVolumeSource>, pub vsphere_volume: Option<VsphereVirtualDiskVolumeSource>,
Expand description
Volume represents a named volume in a pod that may be accessed by any container in the pod.
Fields
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.
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
config_map: Option<ConfigMapVolumeSource>
ConfigMap represents a configMap that should populate this volume
csi: Option<CSIVolumeSource>
CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature).
downward_api: Option<DownwardAPIVolumeSource>
DownwardAPI represents downward API about the pod that should populate this volume
empty_dir: Option<EmptyDirVolumeSource>
EmptyDir represents a temporary directory that shares a pod’s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
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.
flocker: Option<FlockerVolumeSource>
Flocker represents a Flocker volume attached to a kubelet’s host machine. 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. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
git_repo: Option<GitRepoVolumeSource>
GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod’s container.
glusterfs: Option<GlusterfsVolumeSource>
Glusterfs represents a Glusterfs mount on the host that shares a pod’s lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md
host_path: Option<HostPathVolumeSource>
HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. 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. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md
name: String
Volume’s name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
nfs: Option<NFSVolumeSource>
NFS represents an NFS mount on the host that shares a pod’s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
persistent_volume_claim: Option<PersistentVolumeClaimVolumeSource>
PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
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
projected: Option<ProjectedVolumeSource>
Items for all in one resources secrets, configmaps, and downward API
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.
secret: Option<SecretVolumeSource>
Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
storageos: Option<StorageOSVolumeSource>
StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
vsphere_volume: Option<VsphereVirtualDiskVolumeSource>
VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
Trait Implementations
impl<'de> Deserialize<'de> for Volume
[src]
impl<'de> Deserialize<'de> for Volume
[src]fn 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>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Volume
[src]
Auto Trait Implementations
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,