interface ManagedNodeGroup {
    amiReleaseVersion?: string;
    amiType?: NodegroupAmiType;
    desiredSize?: number;
    diskSize?: number;
    enableSsmPermissions?: boolean;
    forceUpdate?: boolean;
    id: string;
    instanceTypes?: InstanceType[];
    labels?: {
        [name: string]: string;
    };
    launchTemplate?: LaunchTemplateProps;
    launchTemplateSpec?: LaunchTemplateSpec;
    maxSize?: number;
    maxUnavailable?: number;
    maxUnavailablePercentage?: number;
    minSize?: number;
    nodeGroupCapacityType?: CapacityType;
    nodegroupName?: string;
    nodeGroupSubnets?: SubnetSelection;
    nodeRole?: IRole;
    remoteAccess?: NodegroupRemoteAccess;
    tags?: {
        [name: string]: string;
    };
    taints?: TaintSpec[];
}

Hierarchy

  • Omit<eks.NodegroupOptions,
        | "launchTemplate"
        | "subnets"
        | "capacityType"
        | "releaseVersion">
    • ManagedNodeGroup

Properties

amiReleaseVersion?: string

This property is used to upgrade node groups to the latest kubelet by upgrading node group AMI. Look up the versions here (mapped to Kubernetes version): https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html

amiType?: NodegroupAmiType

Choose AMI type for the managed node group.

desiredSize?: number

Desired size, defaults to min size.

diskSize?: number

The root device disk size (in GiB) for your node group instances.

20
enableSsmPermissions?: boolean

If set to true will add AmazonSSMManagedInstanceCore to the node role.

forceUpdate?: boolean

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.

true
id: string

Id of this node group. Expected to be unique in cluster scope.

instanceTypes?: InstanceType[]

Instance types used for the node group. Multiple types makes sense if capacity type is SPOT.

m5.large
labels?: {
    [name: string]: string;
}

The Kubernetes labels to be applied to the nodes in the node group when they are created.

- None
launchTemplate?: LaunchTemplateProps

The Launch Template properties for the Nodes. amiType and amiReleaseVersion will be ignored if this is set.

launchTemplateSpec?: LaunchTemplateSpec

Launch template specification used for the nodegroup

maxSize?: number

Max size of the node group.

3
maxUnavailable?: number

The maximum number of nodes unavailable at once during a version update. Nodes will be updated in parallel. The maximum number is 100.

This value or maxUnavailablePercentage is required to have a value for custom update configurations to be applied.

maxUnavailablePercentage?: number

The maximum percentage of nodes unavailable during a version update. This percentage of nodes will be updated in parallel, up to 100 nodes at once.

This value or maxUnavailable is required to have a value for custom update configurations to be applied.

minSize?: number

Min size of the node group

1
nodeGroupCapacityType?: CapacityType

Select either SPOT or ON-DEMAND

nodegroupName?: string

Name of the Nodegroup

- resource ID
nodeGroupSubnets?: SubnetSelection

Subnets for the autoscaling group where nodes (instances) will be placed.

all private subnets
nodeRole?: IRole

The IAM role to associate with your node group. The Amazon EKS worker node kubelet daemon makes calls to AWS APIs on your behalf. Worker nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch worker nodes and register them into a cluster, you must create an IAM role for those worker nodes to use when they are launched.

- None. Auto-generated if not specified.
remoteAccess?: NodegroupRemoteAccess

The remote access (SSH) configuration to use with your node group. Disabled by default, however, if you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the worker nodes is opened to the internet (0.0.0.0/0)

- disabled
tags?: {
    [name: string]: string;
}

The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.

- None
taints?: TaintSpec[]

The Kubernetes taints to be applied to the nodes in the node group when they are created.

- None