Achieving Data Locality - Running steps on same node #5236
-
Is there a way in Argo to specify that steps in the workflow need to run on the same node, so that they can share a hostpath volume? I am not sure how I could use affinity to achieve that with just kubernetes out of the box. |
Beta Was this translation helpful? Give feedback.
Answered by
terrytangyuan
Feb 27, 2021
Replies: 1 comment 3 replies
-
Yes, you can specify |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
itajaja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can specify
nodeSelector
andaffinity
at either workflow or template level. Here's an example of using node selector in a step: https://github.com/argoproj/argo-workflows/blob/master/examples/node-selector.yaml