Class: AWSCDK::EKS::CfnCluster::RemotePodNetworkProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_cluster.rb

Overview

A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.

These CIDR blocks are determined by configuring your Container Network Interface (CNI) plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't available for on-premises and edge locations.

Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example, 10.2.0.0/16 ).

It must satisfy the following requirements:

  • Each block must be within an IPv4 RFC-1918 network range. Minimum allowed size is /32, maximum allowed size is /8. Publicly-routable addresses aren't supported.
  • Each block cannot overlap with the range of the VPC CIDR blocks for your EKS resources, or the block of the Kubernetes service IP range.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidrs:) ⇒ RemotePodNetworkProperty

Returns a new instance of RemotePodNetworkProperty.

Parameters:

  • cidrs (Array<String>)

    A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.



1655
1656
1657
1658
# File 'eks/cfn_cluster.rb', line 1655

def initialize(cidrs:)
  @cidrs = cidrs
  Jsii::Type.check_type(@cidrs, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cidrs")
end

Instance Attribute Details

#cidrsArray<String> (readonly)

A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.

These CIDR blocks are determined by configuring your Container Network Interface (CNI) plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't available for on-premises and edge locations.

Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example, 10.2.0.0/16 ).

It must satisfy the following requirements:

  • Each block must be within an IPv4 RFC-1918 network range. Minimum allowed size is /32, maximum allowed size is /8. Publicly-routable addresses aren't supported.
  • Each block cannot overlap with the range of the VPC CIDR blocks for your EKS resources, or the block of the Kubernetes service IP range.


1673
1674
1675
# File 'eks/cfn_cluster.rb', line 1673

def cidrs
  @cidrs
end

Class Method Details

.jsii_propertiesObject



1675
1676
1677
1678
1679
# File 'eks/cfn_cluster.rb', line 1675

def self.jsii_properties
  {
    :cidrs => "cidrs",
  }
end

Instance Method Details

#to_jsiiObject



1681
1682
1683
1684
1685
1686
1687
# File 'eks/cfn_cluster.rb', line 1681

def to_jsii
  result = {}
  result.merge!({
    "cidrs" => @cidrs,
  })
  result.compact
end