https://prefect.io logo
Title
m

Michał Augoff

03/18/2022, 10:28 PM
does configuring a flow with
KubernetesRun
restrict the flow only to kubernetes agents or can it still be picked up by any agent as long as the labels match? I was under this impression after reading the docs but when I created 1 docker agent and 1 k8s agent with the same set of labels, my kubernetes flow got picked up by the docker agent
k

Kevin Kho

03/18/2022, 11:28 PM
It should be KubernetesRun <-> Kubernetes Agent only. I can test it out quickly one second.
Oh you mean it gets picked up but fails like this?
TypeError: Flow run 62f5d2b5-db9a-4f86-ab89-d42e37b1531a has a `run_config` of type `KubernetesRun`, only `DockerRun` is supported
[2022-03-18 23:33:35,189] ERROR - agent | Updating flow run 62f5d2b5-db9a-4f86-ab89-d42e37b1531a state to Failed...
[2022-03-18 23:33:35,388] ERROR - agent | Deployment of 62f5d2b5-db9a-4f86-ab89-d42e37b1531a aborted!
m

Michał Augoff

03/18/2022, 11:37 PM
yep, exactly
k

Kevin Kho

03/18/2022, 11:45 PM
Ah yeah there is nothing blocking it because the mechanism is just the labels. I think this is because if you don’t define RunConfig, the default is UniversalRun, and that can be picked up by all.
In Orion though, there is no agent type and it will just deploy whatever the FlowRunner is so this will be fixed
m

Michał Augoff

03/18/2022, 11:50 PM
I see, alright, that makes sense although it was a bit confusing at first, thanks!