Struct aws_sdk_eks::model::KubernetesNetworkConfigRequest
source · [−]#[non_exhaustive]pub struct KubernetesNetworkConfigRequest {
pub service_ipv4_cidr: Option<String>,
pub ip_family: Option<IpFamily>,
}
Expand description
The Kubernetes network configuration for the cluster.
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_ipv4_cidr: Option<String>
Don't specify a value if you select ipv6
for ipFamily. The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. The block must meet the following requirements:
-
Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
-
Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
-
Between /24 and /12.
You can only specify a custom CIDR block when you create a cluster and can't change this value once the cluster is created.
ip_family: Option<IpFamily>
Specify which IP family is used to assign Kubernetes pod and service IP addresses. If you don't specify a value, ipv4
is used by default. You can only specify an IP family when you create a cluster and can't change this value once the cluster is created. If you specify ipv6
, the VPC and subnets that you specify for cluster creation must have both IPv4 and IPv6 CIDR blocks assigned to them. You can't specify ipv6
for clusters in China Regions.
You can only specify ipv6
for 1.21 and later clusters that use version 1.10.1 or later of the Amazon VPC CNI add-on. If you specify ipv6
, then ensure that your VPC meets the requirements listed in the considerations listed in Assigning IPv6 addresses to pods and services in the Amazon EKS User Guide. Kubernetes assigns services IPv6 addresses from the unique local address range (fc00::/7). You can't specify a custom IPv6 CIDR block. Pod addresses are assigned from the subnet's IPv6 CIDR.
Implementations
sourceimpl KubernetesNetworkConfigRequest
impl KubernetesNetworkConfigRequest
sourcepub fn service_ipv4_cidr(&self) -> Option<&str>
pub fn service_ipv4_cidr(&self) -> Option<&str>
Don't specify a value if you select ipv6
for ipFamily. The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. The block must meet the following requirements:
-
Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16.
-
Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
-
Between /24 and /12.
You can only specify a custom CIDR block when you create a cluster and can't change this value once the cluster is created.
sourcepub fn ip_family(&self) -> Option<&IpFamily>
pub fn ip_family(&self) -> Option<&IpFamily>
Specify which IP family is used to assign Kubernetes pod and service IP addresses. If you don't specify a value, ipv4
is used by default. You can only specify an IP family when you create a cluster and can't change this value once the cluster is created. If you specify ipv6
, the VPC and subnets that you specify for cluster creation must have both IPv4 and IPv6 CIDR blocks assigned to them. You can't specify ipv6
for clusters in China Regions.
You can only specify ipv6
for 1.21 and later clusters that use version 1.10.1 or later of the Amazon VPC CNI add-on. If you specify ipv6
, then ensure that your VPC meets the requirements listed in the considerations listed in Assigning IPv6 addresses to pods and services in the Amazon EKS User Guide. Kubernetes assigns services IPv6 addresses from the unique local address range (fc00::/7). You can't specify a custom IPv6 CIDR block. Pod addresses are assigned from the subnet's IPv6 CIDR.
sourceimpl KubernetesNetworkConfigRequest
impl KubernetesNetworkConfigRequest
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture KubernetesNetworkConfigRequest
Trait Implementations
sourceimpl Clone for KubernetesNetworkConfigRequest
impl Clone for KubernetesNetworkConfigRequest
sourcefn clone(&self) -> KubernetesNetworkConfigRequest
fn clone(&self) -> KubernetesNetworkConfigRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<KubernetesNetworkConfigRequest> for KubernetesNetworkConfigRequest
impl PartialEq<KubernetesNetworkConfigRequest> for KubernetesNetworkConfigRequest
sourcefn eq(&self, other: &KubernetesNetworkConfigRequest) -> bool
fn eq(&self, other: &KubernetesNetworkConfigRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KubernetesNetworkConfigRequest) -> bool
fn ne(&self, other: &KubernetesNetworkConfigRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for KubernetesNetworkConfigRequest
Auto Trait Implementations
impl RefUnwindSafe for KubernetesNetworkConfigRequest
impl Send for KubernetesNetworkConfigRequest
impl Sync for KubernetesNetworkConfigRequest
impl Unpin for KubernetesNetworkConfigRequest
impl UnwindSafe for KubernetesNetworkConfigRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more