Skip to content
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

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

Open
artem-nefedov opened this issue Jan 15, 2025 · 2 comments
Labels
kind/bug priority/important-soon Ideally to be resolved in time for the next release

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
@sharafat678
Copy link

sharafat678 commented Jan 16, 2025

I am also having the exact same issue in (cn-north-1) region. Do comment if anybody have the fix.
image

@sharafat678
Copy link

the error is solved by downgrading the eksctl version to 0.199.0. Maybe the latest eksctl version have some compatibility issues.

@TiberiuGC TiberiuGC added the priority/important-soon Ideally to be resolved in time for the next release label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug priority/important-soon Ideally to be resolved in time for the next release
Projects
None yet
Development

No branches or pull requests

3 participants