Skip to content
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

Example Karpenter does not work, karpenter pods are pending (version 20.4.0) #2943

Closed
1 task done
kartoch opened this issue Feb 23, 2024 · 6 comments · Fixed by #2963
Closed
1 task done

Example Karpenter does not work, karpenter pods are pending (version 20.4.0) #2943

kartoch opened this issue Feb 23, 2024 · 6 comments · Fixed by #2963
Labels

Comments

@kartoch
Copy link

kartoch commented Feb 23, 2024

Description

When the karpenter example is applied, karpenter pods are pending because of taints.

When changed the karpenter helm values, it works:

resource "helm_release" "karpenter" {

  # values ommited

  values = [
    <<-EOT
    # values ommited
    tolerations:
      - effect: NoSchedule
        operator: "Equal"
        key: eks.amazonaws.com/compute-type
        value: fargate
    EOT
  ]
}
  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version: 20.4.0

  • Terraform version:

Terraform v1.6.6
  • Provider version(s):
Terraform v1.6.6
on linux_amd64
+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/aws v5.38.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.3
+ provider registry.terraform.io/hashicorp/helm v2.12.1
+ provider registry.terraform.io/hashicorp/time v0.10.0
+ provider registry.terraform.io/hashicorp/tls v4.0.5

Reproduction Code [Required]

> cd examples/karpenter/
> terraform apply -approve
# get kubectl credentials
> k get pods - n karpenter
karpenter     karpenter-b8796757b-7gpr2   0/1     Pending   0   17m
karpenter     karpenter-b8796757b-nvw6k   0/1    Pending  0   17m

Expected behavior

karpenter pods running.

Actual behavior

karpenter pods in pending.

@auyer
Copy link

auyer commented Mar 5, 2024

I am having a similar error. When I check the Events in the Karpenter pod, this is what I get:

Warning  FailedScheduling  15m   fargate-scheduler  Misconfigured Fargate Profile: fargate profile platform-k8s-sandbox-fargate blocked for new launches due to: Pod execution role is not found in auth config or does not have all required permissions for launching fargate pods.

Is this the same as you, @kartoch ?

@auyer
Copy link

auyer commented Mar 5, 2024

Could this be related to #2912 ?

@rkapil
Copy link

rkapil commented Mar 8, 2024

Description

When the karpenter example is applied, karpenter pods are pending because of taints.

When changed the karpenter helm values, it works:

resource "helm_release" "karpenter" {

  # values ommited

  values = [
    <<-EOT
    # values ommited
    tolerations:
      - effect: NoSchedule
        operator: "Equal"
        key: eks.amazonaws.com/compute-type
        value: fargate
    EOT
  ]
}
  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version: 20.4.0
  • Terraform version:
Terraform v1.6.6
  • Provider version(s):
Terraform v1.6.6
on linux_amd64
+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/aws v5.38.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.3
+ provider registry.terraform.io/hashicorp/helm v2.12.1
+ provider registry.terraform.io/hashicorp/time v0.10.0
+ provider registry.terraform.io/hashicorp/tls v4.0.5

Reproduction Code [Required]

> cd examples/karpenter/
> terraform apply -approve
# get kubectl credentials
> k get pods - n karpenter
karpenter     karpenter-b8796757b-7gpr2   0/1     Pending   0   17m
karpenter     karpenter-b8796757b-nvw6k   0/1    Pending  0   17m

Expected behavior

karpenter pods running.

Actual behavior

karpenter pods in pending.

I am seeing the same issue, karpenter pods in pending. Just pulled from master today.

@invalidred
Copy link

Also seeing the same issue, Karpenter pods are in pending state with error

Misconfigured Fargate Profile: fargate profile karpenter blocked for new launches due to: Pod execution role is not found in auth config or does not have all required permissions for launching fargate pods

@antonbabenko
Copy link
Member

This issue has been resolved in version 20.8.3 🎉

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
6 participants