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

Fix cluster DNS IP format in Bottlerocket userdata #1389

Merged
merged 3 commits into from Feb 22, 2022

Conversation

mKeRix
Copy link
Contributor

@mKeRix mKeRix commented Feb 21, 2022

1. Issue, if available:
Using Bottlerocket with spec.kubeletConfiguration.clusterDNS in the provider will fail to generate valid user data ("[ip]" instead of "ip"), which leads to the nodes not becoming ready.

2. Description of changes:
This change matches the Bottlerocket behavior to the AL2 one, where only the first IP will be picked into the option. Since Bottlerocket OS also only supports a single IP for that option this seems to be the only plausible way atm.

3. How was this change tested?
Built a custom controller image and used it in my own EKS cluster w/ IPv6 (where setting the cluster DNS is required). Used spec.provider.amiFamily: Bottlerocket.

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Bottlerocket, like AL2, also only supports a single cluster DNS IP. This
change matches Bottlerocket behavior to the existing AL2 one.
@netlify
Copy link

netlify bot commented Feb 21, 2022

✔️ Deploy Preview for karpenter-docs-prod canceled.

🔨 Explore the source changes: a534fbc

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/62150c13f5a4960007b8b215

Co-authored-by: Brandon Wagner <bmwagner10@gmail.com>
@mKeRix mKeRix requested a review from bwagner5 February 22, 2022 07:14
@bwagner5
Copy link
Contributor

Ah looks like there's a tiny formatting issue in that change, can you run:

make verify

and commit the change that produces. Sorry about that!

@mKeRix
Copy link
Contributor Author

mKeRix commented Feb 22, 2022

Hopefully this does the trick :)

@ellistarn ellistarn merged commit 6ea0776 into aws:main Feb 22, 2022
@mKeRix mKeRix deleted the bottlerocket-dns-fix branch February 23, 2022 06:13
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.

None yet

3 participants