This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Description
Hi,
We need to assign instance life cycle as node label to support some functionality. Earlier with bootstrap.sh this method used to work - --kubelet-extra-args "--node-labels=lifecycle=$(curl -s http://169.254.169.254/latest/meta-data/instance-life-cycle),worker_type=application"
But with nodeadm, I could not find reference to make it work.
`MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"
--BOUNDARY
Content-Type: application/node.eks.aws
apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec:
cluster:
name:
apiServerEndpoint:
certificateAuthority:
cidr: 10.1.0.0/16
--BOUNDARY
Content-Type: application/node.eks.aws
apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec:
kubelet:
config:
shutdownGracePeriod: 30s
featureGates:
DisableKubeletCloudCredentialProviders: true
flags:
- --node-labels=lifecycle=$(curl -s http://169.254.169.254/latest/meta-data/instance-life-cycle),worker_type=application
--BOUNDARY--`