Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Can't create cluster in aws-cn (no versions available for "metrics-server") #8145

Open
artem-nefedov opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@artem-nefedov
Copy link

What were you trying to accomplish?

Create cluster in AWS China.

What happened?

Cluster creation fails at addon creation with no versions available for "metrics-server", despite addon configuration not including "metrics-server" addon.

How to reproduce it?

Create cluster in AWS China (cn-north-1) with the following addon configuration:

addons:
- name: vpc-cni
  attachPolicyARNs:
    - arn:aws-cn:iam::aws:policy/AmazonEKS_CNI_Policy
  version: latest
- name: coredns
  version: latest
- name: kube-proxy
  version: latest

Logs

build	14-Jan-2025 20:48:32	2025-01-14 20:48:32 [!]  IRSA config is set for "vpc-cni" addon, but since OIDC is disabled on the cluster, eksctl cannot configure the requested permissions; the recommended way to provide IAM permissions for "vpc-cni" addon is via pod identity associations; after addon creation is completed, add all recommended policies to the config file, under `addon.PodIdentityAssociations`, and run `eksctl update addon`
build	14-Jan-2025 20:48:32	2025-01-14 20:48:32 [ℹ]  creating addon
build	14-Jan-2025 20:48:32	2025-01-14 20:48:32 [ℹ]  successfully created addon
build	14-Jan-2025 20:48:32	2025-01-14 20:48:32 [ℹ]  creating addon
build	14-Jan-2025 20:48:32	2025-01-14 20:48:32 [ℹ]  successfully created addon
build	14-Jan-2025 20:48:33	2025-01-14 20:48:33 [ℹ]  creating addon
build	14-Jan-2025 20:48:33	2025-01-14 20:48:33 [ℹ]  successfully created addon
build	14-Jan-2025 20:48:33	2025-01-14 20:48:33 [!]  1 error(s) occurred and cluster hasn't been created properly, you may wish to check CloudFormation console
build	14-Jan-2025 20:48:33	2025-01-14 20:48:33 [ℹ]  to cleanup resources, run 'eksctl delete cluster --region=cn-north-1 --name=my-cluster'
build	14-Jan-2025 20:48:33	2025-01-14 20:48:33 [✖]  no versions available for "metrics-server"

Anything else we need to know?

My guess is that "metrics-server" addon not available in China, but the problem is still on eksctl side since I didn't specify this addon to be deployed.
eksctl should not request version for addons that are not used.

Versions

eksctl version 0.201.0
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant