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 disable default addons with auto mode #8164

Closed
artem-nefedov opened this issue Jan 27, 2025 · 0 comments · Fixed by #8165
Closed

[Bug] Can't disable default addons with auto mode #8164

artem-nefedov opened this issue Jan 27, 2025 · 0 comments · Fixed by #8165
Labels

Comments

@artem-nefedov
Copy link
Contributor

artem-nefedov commented Jan 27, 2025

What were you trying to accomplish?

Create a cluster with auto mode enabled and with default addons (metrics-server) disabled.

What happened?

eksctl throws a confusing error (no mention of problematic section). Removing addonsConfig makes the creation run successfully.

How to reproduce it?

Run eksctl create cluster with config containing the following sections:

addonsConfig:
  disableDefaultAddons: true

autoModeConfig:
  enabled: true
  nodeRoleARN: arn:...<redacted>
  nodePools: [system] 

iam:
  withOIDC: true
  serviceAccounts:
   ... # non-empty list required for the problem to trigger

Logs

Error: fields nodeGroups, managedNodeGroups, fargateProfiles, karpenter, gitops, iam.serviceAccounts, and iam.podIdentityAssociations are not supported during cluster creation in a cluster without VPC CNI; please remove these fields and add them back after cluster creation is successful

Anything else we need to know?

Versions

eksctl 0.202.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant