Struct k8s_openapi::v1_9::api::core::v1::Volume[][src]

pub struct Volume {
    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 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>,
}

Volume represents a named volume in a pod that may be accessed by any container in the pod.

Fields

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.

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

ConfigMap represents a configMap that should populate this volume

DownwardAPI represents downward API about the pod that should populate this volume

EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

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. 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. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

GitRepo represents a git repository at a particular revision.

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

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 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

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 represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

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

Items for all in one resources secrets, configmaps, and downward API

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.

Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.

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

Trait Implementations

impl Clone for Volume
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Volume
[src]

Formats the value using the given formatter. Read more

impl Default for Volume
[src]

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

impl PartialEq for Volume
[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 Volume
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Volume
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Volume

impl Sync for Volume