-
-
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
Karpenter role doesn't work in China #3155
Comments
Official Karpenter documentation also suggest just using condition with two domains regardless of AWS partition where cluster is deployed: |
This issue has been resolved in version 20.24.1 🎉 |
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. |
Description
You'll get an error like:
This PassedToService restriction is causing this.
Some AWS services in
aws-cn
partition use acom.cn
suffix, but that's unfortunately not very consistent.If your request is for a new feature, please use the
Feature request
template.Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: v20.24.0
Terraform version: v1.9.5
Provider version(s): 5.67.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Create an EKS cluster with Karpenter in cn-north-1 region. Inspect Karpenter logs.
Expected behavior
Karpenter would launch EC2 instances to provide capacity.
Actual behavior
Karpenter encounters an AWS permission error.
Terminal Output Screenshot(s)
Additional context
Happy to raise a pull request. At the moment, the solution I'm using is adding both domains:
I'm not sure if a conditional like:
Then using it would work and be preferred. It might be needed in other places too?
The text was updated successfully, but these errors were encountered: