Struct aws_sdk_batch::types::EksPodProperties
source · #[non_exhaustive]pub struct EksPodProperties {
pub service_account_name: Option<String>,
pub host_network: Option<bool>,
pub dns_policy: Option<String>,
pub containers: Option<Vec<EksContainer>>,
pub volumes: Option<Vec<EksVolume>>,
pub metadata: Option<EksMetadata>,
}
Expand description
The properties for the pod.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_account_name: Option<String>
The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.
host_network: Option<bool>
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to false
enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.
dns_policy: Option<String>
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
containers: Option<Vec<EksContainer>>
The properties of the container that's used on the Amazon EKS pod.
volumes: Option<Vec<EksVolume>>
Specifies the volumes for a job definition that uses Amazon EKS resources.
metadata: Option<EksMetadata>
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
Implementations§
source§impl EksPodProperties
impl EksPodProperties
sourcepub fn service_account_name(&self) -> Option<&str>
pub fn service_account_name(&self) -> Option<&str>
The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.
sourcepub fn host_network(&self) -> Option<bool>
pub fn host_network(&self) -> Option<bool>
Indicates if the pod uses the hosts' network IP address. The default value is true
. Setting this to false
enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.
sourcepub fn dns_policy(&self) -> Option<&str>
pub fn dns_policy(&self) -> Option<&str>
The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
sourcepub fn containers(&self) -> Option<&[EksContainer]>
pub fn containers(&self) -> Option<&[EksContainer]>
The properties of the container that's used on the Amazon EKS pod.
sourcepub fn volumes(&self) -> Option<&[EksVolume]>
pub fn volumes(&self) -> Option<&[EksVolume]>
Specifies the volumes for a job definition that uses Amazon EKS resources.
sourcepub fn metadata(&self) -> Option<&EksMetadata>
pub fn metadata(&self) -> Option<&EksMetadata>
Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
source§impl EksPodProperties
impl EksPodProperties
sourcepub fn builder() -> EksPodPropertiesBuilder
pub fn builder() -> EksPodPropertiesBuilder
Creates a new builder-style object to manufacture EksPodProperties
.
Trait Implementations§
source§impl Clone for EksPodProperties
impl Clone for EksPodProperties
source§fn clone(&self) -> EksPodProperties
fn clone(&self) -> EksPodProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EksPodProperties
impl Debug for EksPodProperties
source§impl PartialEq<EksPodProperties> for EksPodProperties
impl PartialEq<EksPodProperties> for EksPodProperties
source§fn eq(&self, other: &EksPodProperties) -> bool
fn eq(&self, other: &EksPodProperties) -> bool
self
and other
values to be equal, and is used
by ==
.