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

Allow node selectors #23

Open
johanneskoester opened this issue Aug 19, 2024 · 2 comments
Open

Allow node selectors #23

johanneskoester opened this issue Aug 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@johanneskoester
Copy link
Contributor

https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/

Idea: specify them as resources, but ideally in a k8s-independent generic fashion and introduce that as a default resource in Snakemake.

cc @neuhausl

@johanneskoester johanneskoester added the enhancement New feature or request label Aug 19, 2024
@johanneskoester
Copy link
Contributor Author

Input required: please post realistic examples for nodeselectors here.

@neuhausl
Copy link

body.spec = kubernetes.client.V1PodSpec(
            containers=[container], node_selector=node_selector

I replaced node_selector=node_selector with node_selector = {"usedby": "neuhausl"} in the plugin
the node needs a label with the key usedby and the value neuhausl for that to work
anything can be a key=value pair e.g. usedby=user, disktype=ssd, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants