interface ComputeConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Eks.V2.Alpha.ComputeConfig |
Go | github.com/aws/aws-cdk-go/awscdkeksv2alpha/v2#ComputeConfig |
Java | software.amazon.awscdk.services.eks.v2.alpha.ComputeConfig |
Python | aws_cdk.aws_eks_v2_alpha.ComputeConfig |
TypeScript (source) | @aws-cdk/aws-eks-v2-alpha » ComputeConfig |
Options for configuring EKS Auto Mode compute settings.
When enabled, EKS will automatically manage compute resources like node groups and Fargate profiles.
Example
const cluster = new eks.Cluster(this, 'EksAutoCluster', {
version: eks.KubernetesVersion.V1_34,
defaultCapacityType: eks.DefaultCapacityType.AUTOMODE,
compute: {
nodePools: ['system', 'general-purpose'],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| node | string[] | Names of nodePools to include in Auto Mode. |
| node | IRole | IAM role for the nodePools. |
nodePools?
Type:
string[]
(optional, default: ['system', 'general-purpose'])
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.
See also: [ - https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html]( - https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html)
nodeRole?
Type:
IRole
(optional, default: generated by the CDK)
IAM role for the nodePools.
See also: [ - https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html]( - https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html)

.NET
Go
Java
Python
TypeScript (