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

feat: configure nodes to use resource name in dns #7266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skeggse
Copy link

@skeggse skeggse commented Oct 22, 2024

Fixes #6097

Description

The default "IP name" hostname type is called out in the documentation as the legacy type, and the docs recommend using the resource name hostname type. This also makes operations easier because you can more easily determine the instance ID from the nodes list.

This patch sets the hostname type to HostnameTypeResourceName during launch template creation. This patch does not introduce configuration options for this change, which keeps the surface area simple and matches my interpretation of the launch template design document.

How was this change tested?

Not tested.

Does this change impact docs?

  • No

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

The default "IP name" hostname type is called out in the documentation as the legacy type, and the docs recommend using the resource name hostname type. This also makes operations easier because you can more easily determine the instance ID from the nodes list.
@skeggse skeggse requested a review from a team as a code owner October 22, 2024 17:42
Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 6276bf3
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6717e409b3afb80008f29ac2
😎 Deploy Preview https://deploy-preview-7266--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jonathan-innis
Copy link
Contributor

AFAIK, we have to be really careful with this change because I believe it affects interactions with CCM. I recall us hitting an issue with something like this when instance-id based naming was first introduced.

Copy link
Contributor

This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.

@skeggse
Copy link
Author

skeggse commented Nov 12, 2024

I'm unfortunately not going to be a great collaborator on this. I don't have much knowledge of k8s internals (no idea what CCM is), but this change would make my job a lot easier when trying to build tooling around k8s security detections and alerts, and include extra context for those alerts based on information available in AWS.

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.

Add support for overriding default hostname type
2 participants