Using custom AMI ID for EKS Nodegroup

0

We have tried to build launch templates using a custom AMI we have subscribed to from the AMI catalog. When doing this, we have been able to launch instances using Auto-Scaling Group features with that AMI but doesn't create nodes within our EKS cluster. Is there another method to create Node Groups using custom AMI's? When trying to create Node Groups manually in the cluster, the creation runs to failure with the message "Instances failed to join the Kubernetes cluster".

已提問 1 個月前檢視次數 458 次
1 個回答
2

Using a custom AMI for an EKS node group requires a few considerations to ensure that the instances can properly join and function within the Kubernetes cluster managed by Amazon EKS. Here are some steps and checks you can perform to troubleshoot the issue:

Ensure that the custom AMI is compatible with EKS requirements (e.g., pre-installed packages, configurations). Compare its configuration with that of the Amazon EKS Optimized AMI. Use the EKS bootstrap script (/etc/eks/bootstrap.sh) in your launch template in the user data section. Verify IAM role for node group has necessary EKS permissions. Check VPC, subnets, and security groups for proper configuration allowing communication with the EKS control plane and internet. Ensure instances are tagged correctly (e.g., kubernetes.io/cluster/<cluster-name> = owned). Inspect CloudWatch Logs for bootstrap process errors. Check the Auto Scaling Group's Activity History for instance launch errors. Confirm the EKS Cluster Role has eks:DescribeCluster permission.

If this response has addressed your question, could you kindly accept the answer? It would greatly benefit the community. Thank you!

profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南