Closed fanyang01 closed 3 days ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
Description
I got the following error from Karpenter's logs when creating a new pod on an EKS cluster freshly created in the cn-northwest-1 region with Karpenter installed:
The root cause appears to be the following code:
https://github.com/terraform-aws-modules/terraform-aws-eks/blob/a7ff103478c40e0e1e58b151444e9e91ab0be07a/modules/karpenter/main.tf#L269-L280
I have manually changed
ec2.amazonaws.com
toec2.amazonaws.com.cn
in the policy document attached to the controller role. Then the pod can be scheduled successfully by Karpenter and the error disappears.Versions
Module version [Required]: 20.13
Terraform version:
provider registry.terraform.io/alekc/kubectl v2.0.4
provider registry.terraform.io/hashicorp/aws v5.52.0
provider registry.terraform.io/hashicorp/cloudinit v2.3.4
provider registry.terraform.io/hashicorp/helm v2.13.2
provider registry.terraform.io/hashicorp/kubernetes v2.30.0
provider registry.terraform.io/hashicorp/null v3.2.2
provider registry.terraform.io/hashicorp/time v0.11.2
provider registry.terraform.io/hashicorp/tls v4.0.5
Reproduction Code [Required]
Actual behavior
Karpenter failed to provision EC2 nodes for a pending pod.