https://docs.metaflow.org/api/step-decorators/kubernetes Here, I can see that I can specify custom toleration for a step. Can I also specify affinity? I need to use affinity to ensure that steps can be scheduled to a specific GPU node.
✅ 1
u
user
02/08/2024, 4:16 PM
You can use node_selectors.
Copy code
@kubernetes(node_selector="mylife=myrules")
👀 1
yayfox 1
g
gray-pharmacist-29868
02/09/2024, 5:27 AM
It was not present in the decorator documentation, but I can see it in the source code. I will check it out.