Open Bill-Tao-Yang opened 2 days ago
I think it may be related to the cache of instance types. Since our AWS account does not allow access to the public network, Karpenter cannot query the latest type of ec2 instance through ec2api and can only use the initialized instance type.
I checked the pkg/providers/pricing/zz_generated.pricing_aws_cn.go code and found that there is no g5 type instance. The code was updated on September 18, 2023, but g5 type instances can be used in China in April 2024.
Description
Observed Behavior: In the cn-north-1 region, karpenter cannot apply for a g5 instance. Even though all configurations are correct, an error message is displayed:
Expected Behavior: In the cn-north-1 region, karpenter can apply for a g5 instance
Reproduction Steps (Please include YAML):
This is my karpenter configuration:
this is my pod config:
Versions: v0.32.10
Chart Version: v0.32.10
Kubernetes Version (
kubectl version
): v1.30Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment