Skip to content

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

@artem-nefedov

Description

@artem-nefedov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions