Title
h

Howard Cornwell

05/07/2021, 2:09 PM
Hey, I’m wondering if there’s a supported way for the prefect agent to run jobs using a specific kubernetes nodeselector? For example, a flow labeled
high-memory
runs on a
high-memory
agent which spawns jobs via a
high-memory
nodeselector.
m

Mariia Kerimova

05/07/2021, 2:13 PM
You can provide a custom job template to the agent or KubernetesRun, and specify node selector in the template. Also, you could spin up a second agent with label
high-memory
and provide a custom job template with
high-memory
node selector.
h

Howard Cornwell

05/07/2021, 2:36 PM
That’s great. thank you!