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: avoid selecting subnets with insufficient available IP address #7310

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

Conversation

Vacant2333
Copy link
Contributor

@Vacant2333 Vacant2333 commented Nov 1, 2024

Fixes #5234
#2921

Description
its a feature that when launchInstance select the subnet which has the most available ip count.

How was this change tested?

Does this change impact docs?

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

@Vacant2333 Vacant2333 requested a review from a team as a code owner November 1, 2024 09:02
@Vacant2333 Vacant2333 requested a review from jmdeal November 1, 2024 09:02
Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit d120906
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67452c3dcb8a5b000892579e
😎 Deploy Preview https://deploy-preview-7310--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.

@Vacant2333 Vacant2333 force-pushed the feat-select-the-most-availalbe-ip-count-subnet branch from 22ed451 to 4348646 Compare November 1, 2024 09:15
@Vacant2333 Vacant2333 changed the title [WIP]feat: select the most available ip count subnet when launchInstance fix: avoid selecting subnets with insufficient available IP address Nov 1, 2024
@Vacant2333
Copy link
Contributor Author

@jmdeal @jonathan-innis hi, can u help me review, this pr will resolve the issue #5234

Copy link
Contributor

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

@Vacant2333 Vacant2333 force-pushed the feat-select-the-most-availalbe-ip-count-subnet branch from 4348646 to d120906 Compare November 26, 2024 02:02
@Vacant2333
Copy link
Contributor Author

@jmdeal can u help me reveiw? thanks

@Talbalash-legit
Copy link

@rschalo I know you're incredibly busy, but this PR would be a game-changer for us. It addresses the persistent issue we've been struggling with in #5234, and getting it merged would genuinely make a world of difference for our team. We're counting on your expertise to give it the green light. Thank you so much for considering this 🙏

@rschalo
Copy link
Contributor

rschalo commented Dec 16, 2024

Hi All - there is not currently a unit test around this behavior. Could we add one where we assert a subnet is no longer considered if IP exhaustion is expected? From a quick look I think it'd be tested via targeting one zone in a test for InstanceProvider create and an with update to the mock EC2 provider that adds a subnet with 0 available IPs for the targeted zone but not sure how that affects other tests.

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.

Avoid subnets that don't have available IP Addresses
3 participants