aws-cdk.aws-eks-v2-alpha 2.185.0a0__py3-none-any.whl → 2.187.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk.aws-eks-v2-alpha might be problematic. Click here for more details.
- aws_cdk/aws_eks_v2_alpha/__init__.py +85 -3
- aws_cdk/aws_eks_v2_alpha/_jsii/__init__.py +2 -2
- aws_cdk/aws_eks_v2_alpha/_jsii/aws-eks-v2-alpha@2.187.0-alpha.0.jsii.tgz +0 -0
- {aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/METADATA +33 -3
- aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/RECORD +10 -0
- {aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/WHEEL +1 -1
- aws_cdk/aws_eks_v2_alpha/_jsii/aws-eks-v2-alpha@2.185.0-alpha.0.jsii.tgz +0 -0
- aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/RECORD +0 -10
- {aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/LICENSE +0 -0
- {aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/NOTICE +0 -0
- {aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/top_level.txt +0 -0
|
@@ -149,6 +149,22 @@ cluster = eks.Cluster(self, "EksAutoCluster",
|
|
|
149
149
|
|
|
150
150
|
For more information, see [Create a Node Pool for EKS Auto Mode](https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html).
|
|
151
151
|
|
|
152
|
+
### Disabling Default Node Pools
|
|
153
|
+
|
|
154
|
+
You can disable the default node pools entirely by setting an empty array for `nodePools`. This is useful when you want to use Auto Mode features but manage your compute resources separately:
|
|
155
|
+
|
|
156
|
+
```python
|
|
157
|
+
cluster = eks.Cluster(self, "EksAutoCluster",
|
|
158
|
+
version=eks.KubernetesVersion.V1_32,
|
|
159
|
+
default_capacity_type=eks.DefaultCapacityType.AUTOMODE,
|
|
160
|
+
compute=eks.ComputeConfig(
|
|
161
|
+
node_pools=[]
|
|
162
|
+
)
|
|
163
|
+
)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
When node pools are disabled this way, no IAM role will be created for the node pools, preventing deployment failures that would otherwise occur when a role is created without any node pools.
|
|
167
|
+
|
|
152
168
|
### Node Groups as the default capacity type
|
|
153
169
|
|
|
154
170
|
If you prefer to manage your own node groups instead of using Auto Mode, you can use the traditional node group approach by specifying `defaultCapacityType` as `NODEGROUP`:
|
|
@@ -1148,6 +1164,20 @@ cluster = eks.Cluster(self, "Cluster",
|
|
|
1148
1164
|
]
|
|
1149
1165
|
)
|
|
1150
1166
|
```
|
|
1167
|
+
|
|
1168
|
+
## NodeGroup Repair Config
|
|
1169
|
+
|
|
1170
|
+
You can enable Managed Node Group [auto-repair config](https://docs.aws.amazon.com/eks/latest/userguide/node-health.html#node-auto-repair) using `enableNodeAutoRepair`
|
|
1171
|
+
property. For example:
|
|
1172
|
+
|
|
1173
|
+
```python
|
|
1174
|
+
# cluster: eks.Cluster
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
cluster.add_nodegroup_capacity("NodeGroup",
|
|
1178
|
+
enable_node_auto_repair=True
|
|
1179
|
+
)
|
|
1180
|
+
```
|
|
1151
1181
|
'''
|
|
1152
1182
|
from pkgutil import extend_path
|
|
1153
1183
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -4582,7 +4612,7 @@ class ClusterProps(ClusterCommonOptions):
|
|
|
4582
4612
|
:param compute: (experimental) Configuration for compute settings in Auto Mode. When enabled, EKS will automatically manage compute resources. Default: - Auto Mode compute disabled
|
|
4583
4613
|
:param default_capacity: (experimental) Number of instances to allocate as an initial capacity for this cluster. Instance type can be configured through ``defaultCapacityInstanceType``, which defaults to ``m5.large``. Use ``cluster.addAutoScalingGroupCapacity`` to add additional customized capacity. Set this to ``0`` is you wish to avoid the initial capacity allocation. Default: 2
|
|
4584
4614
|
:param default_capacity_instance: (experimental) The instance type to use for the default capacity. This will only be taken into account if ``defaultCapacity`` is > 0. Default: m5.large
|
|
4585
|
-
:param default_capacity_type: (experimental) The default capacity type for the cluster. Default:
|
|
4615
|
+
:param default_capacity_type: (experimental) The default capacity type for the cluster. Default: AUTOMODE
|
|
4586
4616
|
:param output_config_command: (experimental) Determines whether a CloudFormation output with the ``aws eks update-kubeconfig`` command will be synthesized. This command will include the cluster name and, if applicable, the ARN of the masters IAM role. Default: true
|
|
4587
4617
|
|
|
4588
4618
|
:stability: experimental
|
|
@@ -4954,7 +4984,7 @@ class ClusterProps(ClusterCommonOptions):
|
|
|
4954
4984
|
def default_capacity_type(self) -> typing.Optional["DefaultCapacityType"]:
|
|
4955
4985
|
'''(experimental) The default capacity type for the cluster.
|
|
4956
4986
|
|
|
4957
|
-
:default:
|
|
4987
|
+
:default: AUTOMODE
|
|
4958
4988
|
|
|
4959
4989
|
:stability: experimental
|
|
4960
4990
|
'''
|
|
@@ -9754,6 +9784,7 @@ class Nodegroup(
|
|
|
9754
9784
|
capacity_type=eks_v2_alpha.CapacityType.SPOT,
|
|
9755
9785
|
desired_size=123,
|
|
9756
9786
|
disk_size=123,
|
|
9787
|
+
enable_node_auto_repair=False,
|
|
9757
9788
|
force_update=False,
|
|
9758
9789
|
instance_type=instance_type,
|
|
9759
9790
|
instance_types=[instance_type],
|
|
@@ -9808,6 +9839,7 @@ class Nodegroup(
|
|
|
9808
9839
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
9809
9840
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
9810
9841
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
9842
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
9811
9843
|
force_update: typing.Optional[builtins.bool] = None,
|
|
9812
9844
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
9813
9845
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -9833,6 +9865,7 @@ class Nodegroup(
|
|
|
9833
9865
|
:param capacity_type: (experimental) The capacity type of the nodegroup. Default: - ON_DEMAND
|
|
9834
9866
|
:param desired_size: (experimental) The current number of worker nodes that the managed node group should maintain. If not specified, the nodewgroup will initially create ``minSize`` instances. Default: 2
|
|
9835
9867
|
:param disk_size: (experimental) The root device disk size (in GiB) for your node group instances. Default: 20
|
|
9868
|
+
:param enable_node_auto_repair: (experimental) Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default. Default: - disabled
|
|
9836
9869
|
:param force_update: (experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node. Default: true
|
|
9837
9870
|
:param instance_type: (deprecated) The instance type to use for your node group. Currently, you can specify a single instance type for a node group. The default value for this parameter is ``t3.medium``. If you choose a GPU instance type, be sure to specify the ``AL2_x86_64_GPU``, ``BOTTLEROCKET_ARM_64_NVIDIA``, or ``BOTTLEROCKET_x86_64_NVIDIA`` with the amiType parameter. Default: t3.medium
|
|
9838
9871
|
:param instance_types: (experimental) The instance types to use for your node group. Default: t3.medium will be used according to the cloudformation document.
|
|
@@ -9862,6 +9895,7 @@ class Nodegroup(
|
|
|
9862
9895
|
capacity_type=capacity_type,
|
|
9863
9896
|
desired_size=desired_size,
|
|
9864
9897
|
disk_size=disk_size,
|
|
9898
|
+
enable_node_auto_repair=enable_node_auto_repair,
|
|
9865
9899
|
force_update=force_update,
|
|
9866
9900
|
instance_type=instance_type,
|
|
9867
9901
|
instance_types=instance_types,
|
|
@@ -10043,6 +10077,7 @@ class NodegroupAmiType(enum.Enum):
|
|
|
10043
10077
|
"capacity_type": "capacityType",
|
|
10044
10078
|
"desired_size": "desiredSize",
|
|
10045
10079
|
"disk_size": "diskSize",
|
|
10080
|
+
"enable_node_auto_repair": "enableNodeAutoRepair",
|
|
10046
10081
|
"force_update": "forceUpdate",
|
|
10047
10082
|
"instance_type": "instanceType",
|
|
10048
10083
|
"instance_types": "instanceTypes",
|
|
@@ -10069,6 +10104,7 @@ class NodegroupOptions:
|
|
|
10069
10104
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
10070
10105
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
10071
10106
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
10107
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
10072
10108
|
force_update: typing.Optional[builtins.bool] = None,
|
|
10073
10109
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
10074
10110
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -10092,6 +10128,7 @@ class NodegroupOptions:
|
|
|
10092
10128
|
:param capacity_type: (experimental) The capacity type of the nodegroup. Default: - ON_DEMAND
|
|
10093
10129
|
:param desired_size: (experimental) The current number of worker nodes that the managed node group should maintain. If not specified, the nodewgroup will initially create ``minSize`` instances. Default: 2
|
|
10094
10130
|
:param disk_size: (experimental) The root device disk size (in GiB) for your node group instances. Default: 20
|
|
10131
|
+
:param enable_node_auto_repair: (experimental) Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default. Default: - disabled
|
|
10095
10132
|
:param force_update: (experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node. Default: true
|
|
10096
10133
|
:param instance_type: (deprecated) The instance type to use for your node group. Currently, you can specify a single instance type for a node group. The default value for this parameter is ``t3.medium``. If you choose a GPU instance type, be sure to specify the ``AL2_x86_64_GPU``, ``BOTTLEROCKET_ARM_64_NVIDIA``, or ``BOTTLEROCKET_x86_64_NVIDIA`` with the amiType parameter. Default: t3.medium
|
|
10097
10134
|
:param instance_types: (experimental) The instance types to use for your node group. Default: t3.medium will be used according to the cloudformation document.
|
|
@@ -10138,6 +10175,7 @@ class NodegroupOptions:
|
|
|
10138
10175
|
check_type(argname="argument capacity_type", value=capacity_type, expected_type=type_hints["capacity_type"])
|
|
10139
10176
|
check_type(argname="argument desired_size", value=desired_size, expected_type=type_hints["desired_size"])
|
|
10140
10177
|
check_type(argname="argument disk_size", value=disk_size, expected_type=type_hints["disk_size"])
|
|
10178
|
+
check_type(argname="argument enable_node_auto_repair", value=enable_node_auto_repair, expected_type=type_hints["enable_node_auto_repair"])
|
|
10141
10179
|
check_type(argname="argument force_update", value=force_update, expected_type=type_hints["force_update"])
|
|
10142
10180
|
check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
|
|
10143
10181
|
check_type(argname="argument instance_types", value=instance_types, expected_type=type_hints["instance_types"])
|
|
@@ -10163,6 +10201,8 @@ class NodegroupOptions:
|
|
|
10163
10201
|
self._values["desired_size"] = desired_size
|
|
10164
10202
|
if disk_size is not None:
|
|
10165
10203
|
self._values["disk_size"] = disk_size
|
|
10204
|
+
if enable_node_auto_repair is not None:
|
|
10205
|
+
self._values["enable_node_auto_repair"] = enable_node_auto_repair
|
|
10166
10206
|
if force_update is not None:
|
|
10167
10207
|
self._values["force_update"] = force_update
|
|
10168
10208
|
if instance_type is not None:
|
|
@@ -10246,6 +10286,20 @@ class NodegroupOptions:
|
|
|
10246
10286
|
result = self._values.get("disk_size")
|
|
10247
10287
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
10248
10288
|
|
|
10289
|
+
@builtins.property
|
|
10290
|
+
def enable_node_auto_repair(self) -> typing.Optional[builtins.bool]:
|
|
10291
|
+
'''(experimental) Specifies whether to enable node auto repair for the node group.
|
|
10292
|
+
|
|
10293
|
+
Node auto repair is disabled by default.
|
|
10294
|
+
|
|
10295
|
+
:default: - disabled
|
|
10296
|
+
|
|
10297
|
+
:see: https://docs.aws.amazon.com/eks/latest/userguide/node-health.html#node-auto-repair
|
|
10298
|
+
:stability: experimental
|
|
10299
|
+
'''
|
|
10300
|
+
result = self._values.get("enable_node_auto_repair")
|
|
10301
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
10302
|
+
|
|
10249
10303
|
@builtins.property
|
|
10250
10304
|
def force_update(self) -> typing.Optional[builtins.bool]:
|
|
10251
10305
|
'''(experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.
|
|
@@ -10488,6 +10542,7 @@ class NodegroupOptions:
|
|
|
10488
10542
|
"capacity_type": "capacityType",
|
|
10489
10543
|
"desired_size": "desiredSize",
|
|
10490
10544
|
"disk_size": "diskSize",
|
|
10545
|
+
"enable_node_auto_repair": "enableNodeAutoRepair",
|
|
10491
10546
|
"force_update": "forceUpdate",
|
|
10492
10547
|
"instance_type": "instanceType",
|
|
10493
10548
|
"instance_types": "instanceTypes",
|
|
@@ -10515,6 +10570,7 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10515
10570
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
10516
10571
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
10517
10572
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
10573
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
10518
10574
|
force_update: typing.Optional[builtins.bool] = None,
|
|
10519
10575
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
10520
10576
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -10539,6 +10595,7 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10539
10595
|
:param capacity_type: (experimental) The capacity type of the nodegroup. Default: - ON_DEMAND
|
|
10540
10596
|
:param desired_size: (experimental) The current number of worker nodes that the managed node group should maintain. If not specified, the nodewgroup will initially create ``minSize`` instances. Default: 2
|
|
10541
10597
|
:param disk_size: (experimental) The root device disk size (in GiB) for your node group instances. Default: 20
|
|
10598
|
+
:param enable_node_auto_repair: (experimental) Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default. Default: - disabled
|
|
10542
10599
|
:param force_update: (experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node. Default: true
|
|
10543
10600
|
:param instance_type: (deprecated) The instance type to use for your node group. Currently, you can specify a single instance type for a node group. The default value for this parameter is ``t3.medium``. If you choose a GPU instance type, be sure to specify the ``AL2_x86_64_GPU``, ``BOTTLEROCKET_ARM_64_NVIDIA``, or ``BOTTLEROCKET_x86_64_NVIDIA`` with the amiType parameter. Default: t3.medium
|
|
10544
10601
|
:param instance_types: (experimental) The instance types to use for your node group. Default: t3.medium will be used according to the cloudformation document.
|
|
@@ -10583,6 +10640,7 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10583
10640
|
capacity_type=eks_v2_alpha.CapacityType.SPOT,
|
|
10584
10641
|
desired_size=123,
|
|
10585
10642
|
disk_size=123,
|
|
10643
|
+
enable_node_auto_repair=False,
|
|
10586
10644
|
force_update=False,
|
|
10587
10645
|
instance_type=instance_type,
|
|
10588
10646
|
instance_types=[instance_type],
|
|
@@ -10638,6 +10696,7 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10638
10696
|
check_type(argname="argument capacity_type", value=capacity_type, expected_type=type_hints["capacity_type"])
|
|
10639
10697
|
check_type(argname="argument desired_size", value=desired_size, expected_type=type_hints["desired_size"])
|
|
10640
10698
|
check_type(argname="argument disk_size", value=disk_size, expected_type=type_hints["disk_size"])
|
|
10699
|
+
check_type(argname="argument enable_node_auto_repair", value=enable_node_auto_repair, expected_type=type_hints["enable_node_auto_repair"])
|
|
10641
10700
|
check_type(argname="argument force_update", value=force_update, expected_type=type_hints["force_update"])
|
|
10642
10701
|
check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
|
|
10643
10702
|
check_type(argname="argument instance_types", value=instance_types, expected_type=type_hints["instance_types"])
|
|
@@ -10666,6 +10725,8 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10666
10725
|
self._values["desired_size"] = desired_size
|
|
10667
10726
|
if disk_size is not None:
|
|
10668
10727
|
self._values["disk_size"] = disk_size
|
|
10728
|
+
if enable_node_auto_repair is not None:
|
|
10729
|
+
self._values["enable_node_auto_repair"] = enable_node_auto_repair
|
|
10669
10730
|
if force_update is not None:
|
|
10670
10731
|
self._values["force_update"] = force_update
|
|
10671
10732
|
if instance_type is not None:
|
|
@@ -10749,6 +10810,20 @@ class NodegroupProps(NodegroupOptions):
|
|
|
10749
10810
|
result = self._values.get("disk_size")
|
|
10750
10811
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
10751
10812
|
|
|
10813
|
+
@builtins.property
|
|
10814
|
+
def enable_node_auto_repair(self) -> typing.Optional[builtins.bool]:
|
|
10815
|
+
'''(experimental) Specifies whether to enable node auto repair for the node group.
|
|
10816
|
+
|
|
10817
|
+
Node auto repair is disabled by default.
|
|
10818
|
+
|
|
10819
|
+
:default: - disabled
|
|
10820
|
+
|
|
10821
|
+
:see: https://docs.aws.amazon.com/eks/latest/userguide/node-health.html#node-auto-repair
|
|
10822
|
+
:stability: experimental
|
|
10823
|
+
'''
|
|
10824
|
+
result = self._values.get("enable_node_auto_repair")
|
|
10825
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
10826
|
+
|
|
10752
10827
|
@builtins.property
|
|
10753
10828
|
def force_update(self) -> typing.Optional[builtins.bool]:
|
|
10754
10829
|
'''(experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.
|
|
@@ -12390,7 +12465,7 @@ class Cluster(
|
|
|
12390
12465
|
:param compute: (experimental) Configuration for compute settings in Auto Mode. When enabled, EKS will automatically manage compute resources. Default: - Auto Mode compute disabled
|
|
12391
12466
|
:param default_capacity: (experimental) Number of instances to allocate as an initial capacity for this cluster. Instance type can be configured through ``defaultCapacityInstanceType``, which defaults to ``m5.large``. Use ``cluster.addAutoScalingGroupCapacity`` to add additional customized capacity. Set this to ``0`` is you wish to avoid the initial capacity allocation. Default: 2
|
|
12392
12467
|
:param default_capacity_instance: (experimental) The instance type to use for the default capacity. This will only be taken into account if ``defaultCapacity`` is > 0. Default: m5.large
|
|
12393
|
-
:param default_capacity_type: (experimental) The default capacity type for the cluster. Default:
|
|
12468
|
+
:param default_capacity_type: (experimental) The default capacity type for the cluster. Default: AUTOMODE
|
|
12394
12469
|
:param output_config_command: (experimental) Determines whether a CloudFormation output with the ``aws eks update-kubeconfig`` command will be synthesized. This command will include the cluster name and, if applicable, the ARN of the masters IAM role. Default: true
|
|
12395
12470
|
:param version: (experimental) The Kubernetes version to run in the cluster.
|
|
12396
12471
|
:param alb_controller: (experimental) Install the AWS Load Balancer Controller onto the cluster. Default: - The controller is not installed.
|
|
@@ -12795,6 +12870,7 @@ class Cluster(
|
|
|
12795
12870
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
12796
12871
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
12797
12872
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
12873
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
12798
12874
|
force_update: typing.Optional[builtins.bool] = None,
|
|
12799
12875
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
12800
12876
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -12821,6 +12897,7 @@ class Cluster(
|
|
|
12821
12897
|
:param capacity_type: (experimental) The capacity type of the nodegroup. Default: - ON_DEMAND
|
|
12822
12898
|
:param desired_size: (experimental) The current number of worker nodes that the managed node group should maintain. If not specified, the nodewgroup will initially create ``minSize`` instances. Default: 2
|
|
12823
12899
|
:param disk_size: (experimental) The root device disk size (in GiB) for your node group instances. Default: 20
|
|
12900
|
+
:param enable_node_auto_repair: (experimental) Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default. Default: - disabled
|
|
12824
12901
|
:param force_update: (experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node. Default: true
|
|
12825
12902
|
:param instance_type: (deprecated) The instance type to use for your node group. Currently, you can specify a single instance type for a node group. The default value for this parameter is ``t3.medium``. If you choose a GPU instance type, be sure to specify the ``AL2_x86_64_GPU``, ``BOTTLEROCKET_ARM_64_NVIDIA``, or ``BOTTLEROCKET_x86_64_NVIDIA`` with the amiType parameter. Default: t3.medium
|
|
12826
12903
|
:param instance_types: (experimental) The instance types to use for your node group. Default: t3.medium will be used according to the cloudformation document.
|
|
@@ -12849,6 +12926,7 @@ class Cluster(
|
|
|
12849
12926
|
capacity_type=capacity_type,
|
|
12850
12927
|
desired_size=desired_size,
|
|
12851
12928
|
disk_size=disk_size,
|
|
12929
|
+
enable_node_auto_repair=enable_node_auto_repair,
|
|
12852
12930
|
force_update=force_update,
|
|
12853
12931
|
instance_type=instance_type,
|
|
12854
12932
|
instance_types=instance_types,
|
|
@@ -14162,6 +14240,7 @@ def _typecheckingstub__fc8b0755389df345d97a19957b1626674e36777445f00245597a6b40c
|
|
|
14162
14240
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
14163
14241
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
14164
14242
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
14243
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
14165
14244
|
force_update: typing.Optional[builtins.bool] = None,
|
|
14166
14245
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
14167
14246
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -14196,6 +14275,7 @@ def _typecheckingstub__9f3bb52aa005520d24284a00deee84fca7e8c4afe54a8bdd40771517f
|
|
|
14196
14275
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
14197
14276
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
14198
14277
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
14278
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
14199
14279
|
force_update: typing.Optional[builtins.bool] = None,
|
|
14200
14280
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
14201
14281
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -14222,6 +14302,7 @@ def _typecheckingstub__1eebacdf94f3e813ed7347b7e8a9a3d1a5527b9a5a2d8f9ef83d77bc6
|
|
|
14222
14302
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
14223
14303
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
14224
14304
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
14305
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
14225
14306
|
force_update: typing.Optional[builtins.bool] = None,
|
|
14226
14307
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
14227
14308
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -14556,6 +14637,7 @@ def _typecheckingstub__53ffb8b8a0e8d695d7a8d656e57c375a99ce7420e23269e0c1ffb12eb
|
|
|
14556
14637
|
capacity_type: typing.Optional[CapacityType] = None,
|
|
14557
14638
|
desired_size: typing.Optional[jsii.Number] = None,
|
|
14558
14639
|
disk_size: typing.Optional[jsii.Number] = None,
|
|
14640
|
+
enable_node_auto_repair: typing.Optional[builtins.bool] = None,
|
|
14559
14641
|
force_update: typing.Optional[builtins.bool] = None,
|
|
14560
14642
|
instance_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.InstanceType] = None,
|
|
14561
14643
|
instance_types: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.InstanceType]] = None,
|
|
@@ -33,9 +33,9 @@ import constructs._jsii
|
|
|
33
33
|
|
|
34
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
35
35
|
"@aws-cdk/aws-eks-v2-alpha",
|
|
36
|
-
"2.
|
|
36
|
+
"2.187.0-alpha.0",
|
|
37
37
|
__name__[0:-6],
|
|
38
|
-
"aws-eks-v2-alpha@2.
|
|
38
|
+
"aws-eks-v2-alpha@2.187.0-alpha.0.jsii.tgz",
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk.aws-eks-v2-alpha
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.187.0a0
|
|
4
4
|
Summary: The CDK Construct Library for AWS::EKS
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -22,9 +22,9 @@ Requires-Python: ~=3.9
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
License-File: NOTICE
|
|
25
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
25
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.187.0
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
27
|
+
Requires-Dist: jsii<2.0.0,>=1.110.0
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|
|
29
29
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
30
30
|
|
|
@@ -178,6 +178,22 @@ cluster = eks.Cluster(self, "EksAutoCluster",
|
|
|
178
178
|
|
|
179
179
|
For more information, see [Create a Node Pool for EKS Auto Mode](https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html).
|
|
180
180
|
|
|
181
|
+
### Disabling Default Node Pools
|
|
182
|
+
|
|
183
|
+
You can disable the default node pools entirely by setting an empty array for `nodePools`. This is useful when you want to use Auto Mode features but manage your compute resources separately:
|
|
184
|
+
|
|
185
|
+
```python
|
|
186
|
+
cluster = eks.Cluster(self, "EksAutoCluster",
|
|
187
|
+
version=eks.KubernetesVersion.V1_32,
|
|
188
|
+
default_capacity_type=eks.DefaultCapacityType.AUTOMODE,
|
|
189
|
+
compute=eks.ComputeConfig(
|
|
190
|
+
node_pools=[]
|
|
191
|
+
)
|
|
192
|
+
)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
When node pools are disabled this way, no IAM role will be created for the node pools, preventing deployment failures that would otherwise occur when a role is created without any node pools.
|
|
196
|
+
|
|
181
197
|
### Node Groups as the default capacity type
|
|
182
198
|
|
|
183
199
|
If you prefer to manage your own node groups instead of using Auto Mode, you can use the traditional node group approach by specifying `defaultCapacityType` as `NODEGROUP`:
|
|
@@ -1177,3 +1193,17 @@ cluster = eks.Cluster(self, "Cluster",
|
|
|
1177
1193
|
]
|
|
1178
1194
|
)
|
|
1179
1195
|
```
|
|
1196
|
+
|
|
1197
|
+
## NodeGroup Repair Config
|
|
1198
|
+
|
|
1199
|
+
You can enable Managed Node Group [auto-repair config](https://docs.aws.amazon.com/eks/latest/userguide/node-health.html#node-auto-repair) using `enableNodeAutoRepair`
|
|
1200
|
+
property. For example:
|
|
1201
|
+
|
|
1202
|
+
```python
|
|
1203
|
+
# cluster: eks.Cluster
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
cluster.add_nodegroup_capacity("NodeGroup",
|
|
1207
|
+
enable_node_auto_repair=True
|
|
1208
|
+
)
|
|
1209
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
aws_cdk/aws_eks_v2_alpha/__init__.py,sha256=8HY82aVsER89h6x1gcH-aOopVVxmTJUge9Of-XC3kjk,700443
|
|
2
|
+
aws_cdk/aws_eks_v2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
aws_cdk/aws_eks_v2_alpha/_jsii/__init__.py,sha256=NxCLCuco79sNnIcYAeq5sfI_BhJfIh4fZncxl6FJGug,1485
|
|
4
|
+
aws_cdk/aws_eks_v2_alpha/_jsii/aws-eks-v2-alpha@2.187.0-alpha.0.jsii.tgz,sha256=zKpwZfv6oigjQUFdYVJLJx3aJPn_obT8xQOOab7BJlg,400101
|
|
5
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/LICENSE,sha256=y47tc38H0C4DpGljYUZDl8XxidQjNxxGLq-K4jwv6Xc,11391
|
|
6
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/METADATA,sha256=NyqV_4RfNmccO5abtY_HqLrswh6ONJO_c9P3MTXSasM,42789
|
|
7
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/NOTICE,sha256=6Jdq-MQvHIyOFx_9SdfwJrEmcxlScjONPAJru73PESY,919
|
|
8
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
9
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
+
aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
aws_cdk/aws_eks_v2_alpha/__init__.py,sha256=V7RuuciwA2zX6r4gt3ePppCenKo_XSfUWjYZV7wjFMo,696218
|
|
2
|
-
aws_cdk/aws_eks_v2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
aws_cdk/aws_eks_v2_alpha/_jsii/__init__.py,sha256=41C6eeCOvccq28XFvsaUL4cmDjPMMa8FhHddKGnS57Q,1485
|
|
4
|
-
aws_cdk/aws_eks_v2_alpha/_jsii/aws-eks-v2-alpha@2.185.0-alpha.0.jsii.tgz,sha256=fbYjXzon7bk2CtZB9P1AiONzEQAXNMXvYikY1-8oL8k,398304
|
|
5
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/LICENSE,sha256=y47tc38H0C4DpGljYUZDl8XxidQjNxxGLq-K4jwv6Xc,11391
|
|
6
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/METADATA,sha256=L0TkYsEKIvZIjTBxL7kKR9M1R4MujckxXagN4n4yeFM,41807
|
|
7
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/NOTICE,sha256=6Jdq-MQvHIyOFx_9SdfwJrEmcxlScjONPAJru73PESY,919
|
|
8
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
9
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
-
aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info/RECORD,,
|
|
File without changes
|
{aws_cdk.aws_eks_v2_alpha-2.185.0a0.dist-info → aws_cdk_aws_eks_v2_alpha-2.187.0a0.dist-info}/NOTICE
RENAMED
|
File without changes
|
|
File without changes
|