Struct aws_sdk_batch::model::EksPodPropertiesDetail
source · #[non_exhaustive]pub struct EksPodPropertiesDetail { /* private fields */ }
Expand description
The details for the pod.
Implementations§
source§impl EksPodPropertiesDetail
impl EksPodPropertiesDetail
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. If no value was specified for dnsPolicy
in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy
by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst
or ClusterFirstWithHostNet
, depending on the value of the hostNetwork
parameter. For more information, see Pod's DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
sourcepub fn containers(&self) -> Option<&[EksContainerDetail]>
pub fn containers(&self) -> Option<&[EksContainerDetail]>
The properties of the container that's used on the Amazon EKS pod.
source§impl EksPodPropertiesDetail
impl EksPodPropertiesDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EksPodPropertiesDetail
.
Trait Implementations§
source§impl Clone for EksPodPropertiesDetail
impl Clone for EksPodPropertiesDetail
source§fn clone(&self) -> EksPodPropertiesDetail
fn clone(&self) -> EksPodPropertiesDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EksPodPropertiesDetail
impl Debug for EksPodPropertiesDetail
source§impl PartialEq<EksPodPropertiesDetail> for EksPodPropertiesDetail
impl PartialEq<EksPodPropertiesDetail> for EksPodPropertiesDetail
source§fn eq(&self, other: &EksPodPropertiesDetail) -> bool
fn eq(&self, other: &EksPodPropertiesDetail) -> bool
self
and other
values to be equal, and is used
by ==
.