-
Notifications
You must be signed in to change notification settings - Fork 979
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
Pod ENI #924
Pod ENI #924
Conversation
✔️ Deploy Preview for karpenter-docs-prod canceled. 🔨 Explore the source changes: 5f43c70 🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/61b177e24cceef000741afaa |
52252b0
to
a110bbf
Compare
@@ -61,6 +61,7 @@ type InstanceType interface { | |||
NvidiaGPUs() *resource.Quantity | |||
AMDGPUs() *resource.Quantity | |||
AWSNeurons() *resource.Quantity | |||
AWSPodENI() *resource.Quantity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit challenging. We've been talking about modeling this in a more vendor neutral way like:
Resources() map[resource.Quantity]
I'm willing to refactor this later, and accept this as is, though.
This is a pretty cool WIP! I'm assuming that |
Update: There is also a lookup table -- this is ugly, but it is what should be used to determine Pod ENI support: Also, it looks like there is a well-known limit VPC Resource Controller - Pod WebhookVPC CNI - Handler |
0f2fa68
to
c71efdc
Compare
Awesome! This is shaping up really nicely! |
I was kind of surprised by the hard-coded lookup table in the VPC controller and that the new m6i and m6a instances don't support this! |
Ready for review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment. Otherwise great job!
Signed-off-by: Brian Dwyer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
1. Issue, if available:
#905
2. Description of changes:
This improves instance type selection to factor in Security Groups for Pods by ensuring only instance types capable of Pod ENI are launched if set in a pods resource request.
This leverages the lookup table in vpc-resource-controller to determine Pod ENI support.
3. 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.