pub struct PodStorageConfig {
pub image_volumes: Option<Vec<ImageVolume>>,
pub mounts: Option<Vec<Mount>>,
pub overlay_volumes: Option<Vec<OverlayVolume>>,
pub shm_size: Option<i64>,
pub shm_size_systemd: Option<i64>,
pub volumes: Option<Vec<NamedVolume>>,
pub volumes_from: Option<Vec<String>>,
}
Fields§
§image_volumes: Option<Vec<ImageVolume>>
Image volumes bind-mount a container-image mount into the pod’s infra container. Optional.
mounts: Option<Vec<Mount>>
Mounts are mounts that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
overlay_volumes: Option<Vec<OverlayVolume>>
Overlay volumes are named volumes that will be added to the pod. Optional.
shm_size: Option<i64>
ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.
shm_size_systemd: Option<i64>
ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp. Optional
volumes: Option<Vec<NamedVolume>>
Volumes are named volumes that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.
volumes_from: Option<Vec<String>>
VolumesFrom is a set of containers whose volumes will be added to this pod. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are ‘ro’, ‘rw’, and ‘z’. Options will be used for all volumes sourced from the container.
Implementations§
Source§impl PodStorageConfig
impl PodStorageConfig
pub fn new() -> PodStorageConfig
Trait Implementations§
Source§impl Clone for PodStorageConfig
impl Clone for PodStorageConfig
Source§fn clone(&self) -> PodStorageConfig
fn clone(&self) -> PodStorageConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more