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

FAQs "Attribute-based requests are currently not possible." #7513

Open
Gladskih opened this issue Dec 10, 2024 · 1 comment
Open

FAQs "Attribute-based requests are currently not possible." #7513

Gladskih opened this issue Dec 10, 2024 · 1 comment

Comments

@Gladskih
Copy link

Could someone clarify that answer to "Can I restrict EC2 instance types?"?

Attribute-based requests are currently not possible.
You can select instances with special hardware, such as gpu

Does it mean that if my app needs to be run only on "c7i.2xlarge" I cannot achieve that using Karpenter?
But what's wrong with this:

apiVersion: karpenter.sh/v1
kind: NodePool
spec:
  template:
    spec:
      requirements:
        - key: node.kubernetes.io/instance-type
          operator: In
          values: ["c7i.2xlarge"]

?

@edmondceausu
Copy link

A list of "well known labels" can be found here and node.kubernetes.io/instance-type is present. However, listing a single instance would go against the best practices since it limits Karpenters ability to select the best node for efficiently placing pods.

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

No branches or pull requests

2 participants