-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support labelSelect for vm scheduler #154
Comments
What is your use case? We though about adding node selection down the line but haven't figured a use case. In most cases people have identical nodes in the cluster (bunch of Mac Minis). |
In our usage scenario, we want CI tasks to be fixed on certain nodes as much as possible in order to reuse the cache efficiently. Some projects have a high priority and require dedicated machines. The remaining projects can reuse the machines. |
You can easily achieve this with resource management. Simply provide a single resource to a subset of workers (e.g. This will ensure that these VMs will only be scheduled on a subset of desired workers. |
You can even introduce an artificial "project-name-cache" resource on some nodes to gurantee that cache of a certain project will be available there. |
Resources are already set when the worker is initialized and cannot be dynamically configured. And not flexible enough. |
Therefore, it is necessary to schedule the vm at the specified node in combination with the selection criteria |
Would you mind providing a minimalistic example to demonstrate your point? I.e. which labels you'd set on workers and which labels you'd use when creating VMs. |
Yes, what I want to implement is to schedule the vm to a certain machine based on the labelSelect. |
Currently,virtual machines can only be scheduled to appropriate worker based on resource. I hope schedule virtual machines to relevant worker based on labelselect like k8s pod.I would like to do this task.
The text was updated successfully, but these errors were encountered: