-
Notifications
You must be signed in to change notification settings - Fork 1k
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: Introduce InstanceType
CRD for overriding instance type resources
#2404
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
InstanceType
CRD for overriding InstanceType
CRD for overriding instance type resources
// used by the scheduler. This resource list can contain known resources (cpu, memory, etc.) | ||
// or it may also contain unknown custom device resources for custom device plugins | ||
// +optional | ||
Resources v1.ResourceList `json:"resources,omitempty"` |
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.
Thoughts on calling this Allocatable
for parity with v1.Node?
e8073f8
to
835a11c
Compare
835a11c
to
80cfc45
Compare
80cfc45
to
19e2aee
Compare
@jonathan-innis @ellistarn unmanageable?We understand that the core idea of Karpenter is to solve the problem of preselected instance types to dynamically select from the magnitude of various types available in AWS. This CRD however defeats this idea and thus does not provide the quality of #2161 - in contrast we see an extreme overhead here. The additional complexity introduced here that multiplies with instance type times instance size results into thousands of variations, which is unmanageable! divergence with
|
Hi @universam1, thanks for your feedback. I'm interested to know how you would deal with the difference in resource capacity for extended resources across different instance types. My assumption is that all instance types wouldn't have the same number of extended resources so we didn't want to couple it too closely to the provisioner as it might also cause a provisioner explosion. Let me know if this understanding is incorrect, though. I'm curious to know how much commonality would exist across your instance types for extended resources and if an overlay concept using something like a label selector would be better. |
Hi @jonathan-innis , thank you for reaching out and acquiring feedback, appreciated!
Let me picture our two use cases:
Granted there are other use cases that I might not be aware of, but I am struggling to picture a case where a one-to-one relation of this config would shine. In our case it would be a management nightmare so to speek. Maybe this context was missing to explain why my simple #2161 is sufficient for us. Thank you for considering! |
Hi @universam1. We are going to close this PR for now. I'm going to migrate our discussion to the RFC PR for instance type settings (#2390) which includes extended resource plugins so that we can keep this feedback in a common place |
Fixes kubernetes-sigs/karpenter#751
Relates to #2161
Description
InstanceType
CR for specifying per-instance type settings. For now, you can override the allocatable resources to specify extended resources that have corresponding custom device plugins for specific instance types.How was this change tested?
Does this change impact docs?
Release Note
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.