https://prefect.io logo
#best-practices
Title
# best-practices
y

Yang Ruan

05/13/2022, 9:52 PM
Hello, Can the same agent run flows that use different docker images? Does that mean that the agent is launching another container? Thanks!
k

Kevin Kho

05/13/2022, 9:59 PM
Yes. Just use the Docker agent and use the Docker RunConfiguration for your flows. Yes the agent is using Docker to spin up another container in this case
y

Yang Ruan

05/13/2022, 10:43 PM
oh great thanks!
So it has to be a Docker agent? Can it work with a Kubernetes agent?
or is the RunConfiguration agnostic of the agent?
k

Kevin Kho

05/16/2022, 5:44 PM
RunConfiguration will pair with the appropriate agent in Prefect one. Yes you can use KubernetesRun + Kubernetes Agent
y

Yang Ruan

05/16/2022, 6:16 PM
The KubernetesAgent can also be configured to use different images?
k

Kevin Kho

05/16/2022, 6:24 PM
The agent can be running in a pod as long as Prefect is installed. The Flow image can be configured in the RunConfiguration. The agent image is not used for the Flow image
y

Yang Ruan

05/16/2022, 6:26 PM
right, ok got it
6 Views