ComputeConfig

class aws_cdk.aws_eks_v2.ComputeConfig(*, node_pools=None, node_role=None)

Bases: object

Options for configuring EKS Auto Mode compute settings.

When enabled, EKS will automatically manage compute resources like node groups and Fargate profiles.

Parameters:
  • node_pools (Optional[Sequence[str]]) – Names of nodePools to include in Auto Mode. You cannot modify the built in system and general-purpose node pools. You can only enable or disable them. Node pool values are case-sensitive and must be general-purpose and/or system. Default: - [‘system’, ‘general-purpose’]

  • node_role (Optional[IRole]) – IAM role for the nodePools. Default: - generated by the CDK

ExampleMetadata:

infused

Example:

cluster = eks.Cluster(self, "EksAutoCluster",
    version=eks.KubernetesVersion.V1_34,
    default_capacity_type=eks.DefaultCapacityType.AUTOMODE,
    compute=eks.ComputeConfig(
        node_pools=["system", "general-purpose"]
    )
)

Attributes

node_pools

Names of nodePools to include in Auto Mode.

You cannot modify the built in system and general-purpose node pools. You can only enable or disable them. Node pool values are case-sensitive and must be general-purpose and/or system.

Default:
  • [‘system’, ‘general-purpose’]

See:
node_role

IAM role for the nodePools.

Default:
  • generated by the CDK

See: