Skip to content

[Bug] node-lifecycle label not present on AmazonLinux2023 nodegroups #8438

@ebr

Description

@ebr

What were you trying to accomplish?

Created new nodegroups and was expecting to see the node-lifecycle labels on the nodes, with spot or on-demand as potential values.

What happened?

The label isn't present on new nodes.

How to reproduce it?

eksctl create nodegroup -f nodegroups.yaml

nodeGroups:
  - name: ng-al2023
    amiFamily: AmazonLinux2023
    instancePrefix: worker-basic
    instancesDistribution:
      instanceTypes:
        - t3.xlarge
        - m4.xlarge
      onDemandBaseCapacity: 1
      onDemandPercentageAboveBaseCapacity: 0
      spotAllocationStrategy: 'capacity-optimized'
    minSize: 1
    maxSize: 5
    desiredCapacity: 1
    labels:
      my-own-label: value
    taints:
      - effect: NoSchedule

Logs

2025-07-08 15:41:00 [ℹ] will use version 1.31 for new nodegroup(s) based on control plane version
2025-07-08 15:41:03 [ℹ] nodegroup "ng-al2023" will use "ami-07947e1daef0a863a" [AmazonLinux2023/1.31]
2025-07-08 15:41:05 [ℹ] 1 nodegroup (ng-al2023) was included (based on the include/exclude rules)
2025-07-08 15:41:05 [ℹ] will create a CloudFormation stack for each of 1 nodegroups in cluster "..."
...
2025-07-08 15:44:10 [ℹ] waiting for at least 1 node(s) to become ready in "ng-al2023"
2025-07-08 15:44:10 [ℹ] nodegroup "ng-al2023" has 1 node(s)
2025-07-08 15:44:10 [ℹ] node "..." is ready
2025-07-08 15:44:10 [✔] created 1 nodegroup(s) in cluster "..."
2025-07-08 15:44:10 [✔] created 0 managed nodegroup(s) in cluster "..."
2025-07-08 15:44:13 [ℹ] checking security group configuration for all nodegroups

Anything else we need to know?

The only two changes from the working configuration were:

  • upgrade eksctl from 0.201.0 to 0.210.0
  • switch to Amazon Linux 2023

Versions

$ eksctl info
eksctl version: 0.210.0
kubectl version: v1.30.0
OS: linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions