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 lifecycle management of core cluster addons. #456

Merged
merged 2 commits into from
Oct 1, 2021

Conversation

sengi
Copy link
Contributor

@sengi sengi commented Oct 1, 2021

Enable EKS management of the three core cluster addons which are installed by default: coredns, kube-proxy, vpc-cni.

Without this, EKS still installs the default versions of these addons but doesn't manage their lifecycle, leaving it to the user to manually make any necessary upgrades or changes during a cluster upgrade.

I added a module variable for overriding the default addon versions just in case we ever need to do so (i.e. in the unlikely event that Amazon were to make a bad version the default), but I don't expect we'll actually need it. We don't want to pin these versions because it would defeat the benefit of Amazon managing the core addons for us and make things less reliable and secure overall.

Also stop hardcoding the cluster version, as we'll need it to vary between environments when rolling out cluster upgrades.

Tested: applied in test account, addon versions remain as expected. Checked that overriding a version to the default version produces no diff. Checked that overriding a version to a non-default version produces the expected diff.

Trello card

sengi added 2 commits October 1, 2021 15:12
We're going to need this in order to do cluster upgrades one environment
at a time.
Enable EKS management of the three core cluster addons which are
installed by default: coredns, kube-proxy, vpc-cni.

Without this, EKS still installs the default versions of these addons
but doesn't manage their lifecycle, leaving it to the user to manually
make any necessary upgrades or changes during a cluster upgrade.

I added a module variable for overriding the default addon versions just
in case we ever need to do so (i.e. in the unlikely event that Amazon
were to make a bad version the default), but I don't expect we'll
actually need it. We don't want to pin these versions because it would
defeat the benefit of Amazon managing the core addons for us and make
things less reliable and secure overall.

Tested: applied in test account, addon versions remain as expected.
Checked that overriding a version to the default version produces no
diff. Checked that overriding a version to a non-default version
produces the expected diff.
Copy link
Contributor

@kerin kerin left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sengi sengi merged commit 14a7670 into main Oct 1, 2021
@sengi sengi deleted the sengi/managed-addons branch October 1, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants