-
Notifications
You must be signed in to change notification settings - Fork 12
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
Set nodeSelector per subnet #23
Comments
Another way to do this - change config scheme to list, like that: |
Hi @and-1 there is currently work being done to move the defintion of IP Pools to CustomResource. there each pool will have a node selector. |
Great! What ETA do you forecast? |
initial PRs should land during Aug. |
Name of custom resources will be name of pool or i can use same pool name in few custom resources? |
pool == CR instance. star the project so u get notified when PR lands. first one will be the API so you can review and comment. |
See draft PR #24 |
Unfortunately such scheme don't resolve my case. I need many subnets per pool and each subnet need to have own nodeSelector. i can set only one pool name in cni config (ipam section) in NetworkAttachmentDefinition. This network name i need to set in annotation of PytorchJob master/worker template. Pods of this job resides on hosts from different rack and ipam has to assign IP from correct subnet (subnet1 if pod in rack1, and subnet2 if pod in rack2) |
currently nvidia-k8s-ipam is not intended to support such scheme. to support your use-case it would be we would need to support:
can you provide more info on the networking scheme you have ? one assumption we have here is that a subnet is reachable for all nodes (or at least all nodes that satisfy a selector) are you working at NVIDIA ? |
What would you like to be added?
I want to suggest to set nodeSelector per subnet, not per all pools
What is the use case for this feature / enhancement?
I use sriov cni and have one subnet per rack. I need use this subnet for all pods hosted in rack. So if set nodeSelector per subnet, i can assign right subnet to pool of nodes and wherever pod scheduled (this rack or another) it get correct ip address
The text was updated successfully, but these errors were encountered: