karpenter: iam:PassedToService
has to be ec2.amazonaws.com.cn
in AWS China
#3057
Labels
iam:PassedToService
has to be ec2.amazonaws.com.cn
in AWS China
#3057
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:
terraform-aws-eks/modules/karpenter/main.tf
Lines 269 to 280 in a7ff103
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:
Reproduction Code [Required]
Actual behavior
Karpenter failed to provision EC2 nodes for a pending pod.
The text was updated successfully, but these errors were encountered: