Geoffrey Gross

05/21/2020, 6:27 PM
Hey everyone. I'm new here. I am at the beginning stages of setting up a POC for Prefect on our kubernetes cluster. I see that there is a Kubernetes Agent which makes sense to me. Then I see the Kubernetes Execution Environment which is also cool. I am curious as to which agent you recommend for the Kubernetes Execution Environment? Or I guess how do Execution Environments interact with Agents?
👀 1

Laura Lorenz (she/her)

05/21/2020, 6:35 PM
Hi @Geoffrey Gross, welcome to Prefect! Agents and execution environments are configured separately so you can mix and match them as you like, though generally folks who already have a kubernetes cluster like you do will use the Kubernetes Agent and either the DaskKubernetes or KubernetesJob environments, depending on your preference (and what level of parallelism you need). Fundamentally agents just poll the backend for what work to do and ship it off to an executor based on what environment is configured. Here’s a little diagram that might help visualize it a bit too:
👍 2

Geoffrey Gross

05/21/2020, 6:42 PM
Thanks! This is helpful!