- Newest
- Most votes
- Most comments
Hi there,
If I understand you correctly, you are having issues updating a managed node group that was created with launch templates.
When you created the launch template from the existing managed node, did you use that launch template to create a new node group? If you did, you can update it with a different version of the same launch template. If you're upgrading a node group that's deployed with a launch template to a new launch template version, you will need to use the Launch template version that you want to update the node group to. If your node group is configured with a custom AMI, then the version that you select must also specify an AMI. Note: You can't directly upgrade a node group that's deployed without a launch template to a new launch template version. Instead, you must deploy a new node group using the launch template to update the node group to a new launch template version [1].
Customizing managed nodes with launch templates - refer to this doc
Lastly, you can run the AWSSupport-TroubleshootEKSWorkerNode runbook, it analyzes an Amazon Elastic Compute Cloud (Amazon EC2) worker node and Amazon Elastic Kubernetes Service (Amazon EKS) cluster to help you identify and troubleshoot common causes that prevent worker nodes from joining a cluster.
Reference [1] - https://docs.aws.amazon.com/eks/latest/userguide/update-managed-node-group.html
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Yes, I created template from existing managed node and then launched a new node group using that template. Now Im trying to update a node group that was created with a launch template. I have ran this AWSSupport-TroubleshootEKSWorkerNode runbook before and no errors showed up. I will run it again.
How do I know if im using custom AMI? In my launch templete I have no AMI specified in instance details. For example my current clusters controll plane is on 1.28 and the new node group I had to create says im using AMI 1.28.8-20240506.
Q: How do I know if i'm using custom AMI?
A: when you specify an AMI ID in the ImageId field of your launch template.
Unfortunatelly still no luck, ran the runbook and it passed all the checks on multiple nodes.
My launch template only contains the fallowing 2 things an nothing else: Security group ID and bootstrap edit /etc/eks/bootstrap.sh ACC_EKS_POC_Cluster --kubelet-extra-args '--node-labels=eks.amazonaws.com/capacityType=ON_DEMAND,eks.amazonaws.com/nodegroup=EKS-ACC-Test --max-pods=110' --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $API_SERVER_URL --dns-cluster-ip $K8S_CLUSTER_DNS_IP --use-max-pods false
By the way I have this exact issue on 3 clusters. One of which is not even 2 weeks old.