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

Enable default addon creation for auto mode clusters #8140

Conversation

gustavodiaz7722
Copy link
Contributor

@gustavodiaz7722 gustavodiaz7722 commented Jan 13, 2025

Description

This change enables the default addon creation workflow for auto mode clusters. Importantly though this change does not install networking addons by default. To start with only metrics-server addon will be installed by default. This will align EKSCTL experience with the default AWS EKS console experience, where by default auto mode clusters come with metrics-server enabled.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@gustavodiaz7722 gustavodiaz7722 added the kind/feature New feature or request label Jan 13, 2025
autoDefaultAddonNames = append(autoDefaultAddonNames, addonName)
} else if addonInfo.IsDefaultAutoMode {
addons = append(addons, &api.Addon{Name: addonName})
autoDefaultAddonNames = append(autoDefaultAddonNames, addonName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to tell without the context of the PR (please update the PR body explaining the motivation behind the changes and intent), but when Auto Mode is enabled, I believe we do NOT want the add-ons deployed since they are provided automatically as part of Auto Mode. The only time we really want add-ons to be deployed is when there is a node group involved (either managed or self-managed)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies for not including description in the PR body, I had originally included one but it seemed to have not published. I have updated the description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are correct, we do not want to install core networking addons on auto mode clusters, since these addons are provisioned as part of auto mode. This change does not enable installing vpc-cni, coredns, or kube-proxy, it only enables installing metrics-server by default.

Metrics-server was chosen to be installed by default based on default AWS EKS Console experience. Console will call EKS Addons create-addon api to provision metrics-server for the customer on cluster creation.

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @gustavodiaz7722 ! I left one tiny suggestion below

pkg/actions/addon/tasks.go Outdated Show resolved Hide resolved
@gustavodiaz7722 gustavodiaz7722 enabled auto-merge (squash) January 15, 2025 18:11
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gustavodiaz7722 gustavodiaz7722 merged commit 714de76 into eksctl-io:main Jan 15, 2025
9 checks passed
@gustavodiaz7722 gustavodiaz7722 deleted the feature/metrics-server-auto-mode branch January 15, 2025 22:20
@artem-nefedov
Copy link

This introduced a problem making it impossible to disable metrics-server in auto mode, see #8164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants