-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EKS Managed Node Group with CUSTOM AMI CoreDNS issue #3272
Comments
What's shown is not valid Terraform |
What exactly is not valid Terraform ? I am able to successfully deploy EKS cluster with nodegroups using this code, issue I have is with coredns addon. |
Is not valid |
also, more importantly - what are you trying to do?
|
Hi, First of all, thank you for your reply and assistance. The AMI I will be using for my EKS cluster is a custom company AMI, but it is derived from the EKS-optimized AMI. I managed to get the setup working by specifying the AMI type directly instead of using the CUSTOM AMI type. Could you clarify why it is recommended to define node groups directly in the cluster definition instead of using a separate module for node groups? I went through the FAQs but couldn’t find anything suggesting that this approach is preferred. Lets say I would like to upgrade ingress + system nodegroups first and after that application nodegroups and other nodegroups. Isnt in this case better to use module for managed node groups ? |
@roman5595 What do you mean when you say, "I managed to get the setup working by specifying the AMI type directly instead of using the CUSTOM AMI type."? Can you be specific here? I'm facing a very similar issue where I'm simply trying to use the Ubuntu EKS ami and it seems fairly straightforward on what to do, i.e. use a |
In my case I use AmazonLinux2023 EKS Optimized AMI(not direct official AWS AMI), so this means my config can look like this : eks_managed_node_group_defaults = { According to doc : https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType , I dont see Ubuntu EKS AMI option here, so I think you would have to use CUSTOM ami_type and in this is different from my case. |
Description
I am trying to deploy EKS with Managed Node Groups that will use Custom AMI. I am also trying to deploy kube-proxy,vpc-cni,coredns via this module. Issue that im experiencing is that coredns is in degraded state and terraform will timeout after 20 minutes.
Warning FailedScheduling 8s (x21 over 3m3s) default-scheduler no nodes available to schedule pods
Versions
Module version [Required]: 20.14.0
Terraform version: v1.6.4
Provider version(s): v5.82.2
Reproduction Code
Steps to reproduce the behavior:
Expected behavior
I Expected that once i will run terraform apply, EKS will be successfully created with Managed Node Group using CUSTOM AMI and all 3 addons will be in active state.
Actual behavior
CoreDNS addon is in degraded state due to : no nodes available to schedule pods - coredns replicas on cluster are in pending state.
Additional context
If i use this and exclude coredns, coredns is nevertheless deployed and deployment works without any issues, however i need to use this addon as i want to add additional configuration values :
similar github issue : #3062 (resolved)
AMI Details:
Architecture: ARM64
OS: Amazon Linux 2023
The text was updated successfully, but these errors were encountered: