pub struct AwsElasticBlockStoreVolumeSource {
pub fs_type: Option<String>,
pub partition: Option<i32>,
pub read_only: Option<bool>,
pub volume_id: Option<String>,
}Expand description
An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.
Fields§
§fs_type: Option<String>Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional
partition: Option<i32>The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). +optional
read_only: Option<bool>Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional
volume_id: Option<String>Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
Implementations§
Trait Implementations§
Source§impl Clone for AwsElasticBlockStoreVolumeSource
impl Clone for AwsElasticBlockStoreVolumeSource
Source§fn clone(&self) -> AwsElasticBlockStoreVolumeSource
fn clone(&self) -> AwsElasticBlockStoreVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for AwsElasticBlockStoreVolumeSource
impl<'de> Deserialize<'de> for AwsElasticBlockStoreVolumeSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromStr for AwsElasticBlockStoreVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a AwsElasticBlockStoreVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for AwsElasticBlockStoreVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a AwsElasticBlockStoreVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for AwsElasticBlockStoreVolumeSource
impl PartialEq for AwsElasticBlockStoreVolumeSource
Source§fn eq(&self, other: &AwsElasticBlockStoreVolumeSource) -> bool
fn eq(&self, other: &AwsElasticBlockStoreVolumeSource) -> bool
self and other values to be equal, and is used by ==.Source§impl ToString for AwsElasticBlockStoreVolumeSource
Converts the AwsElasticBlockStoreVolumeSource value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for AwsElasticBlockStoreVolumeSource
Converts the AwsElasticBlockStoreVolumeSource value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer