terraform-aws-modules / terraform-aws-eks

Terraform module to create Amazon Elastic Kubernetes (EKS) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/eks/aws
Apache License 2.0
4.47k stars 4.09k forks source link

Karpenter example does not work, pods are pending (version 20.29.0) #3211

Closed RHeynsZa closed 1 day ago

RHeynsZa commented 1 day ago

Description

I think there might have been a regression on this issue

I get a very similar issue. I followed the example directly, and get the following result

Warning  FailedScheduling  92s   default-scheduler  0/2 nodes are available: 2 node(s) had untolerated taint {CriticalAddonsOnly: true}. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.

The CoreDns pods run fine

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Reproduction Code [Required]

Steps to reproduce the behavior:

Are you using workspaces?

No

Have you cleared the local cache (see Notice section above)?

Yes

Expected behavior

The pods are scheduled and running

Actual behavior

The example pods just stay pending

Terminal Output Screenshot(s)

Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  92s   default-scheduler  0/2 nodes are available: 2 node(s) had untolerated taint {CriticalAddonsOnly: true}. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.

Additional context

RHeynsZa commented 1 day ago

Thats on me. My subnetSelectorTerms had a different tag than was defined in my VPC.