Hey all! Is it possible to configure a workpool su...
# prefect-kubernetes
l
Hey all! Is it possible to configure a workpool such that it schedules/executes a job within the same container? (worker + flow in 1 k8s pod)
k
you'd need a process type worker + work pool for that, which might not be the easiest thing to set up in k8s
l
Hi Kevin, are you referring to a local subprocess type?
k
yes!
l
is there any documentation on what that setup may look like?
k
You can use our helm chart to deploy any worker type - check out the config section here
l
Thanks! How common would you say this configuration is? i.e. is this something that would be recommended
k
If you're already using kubernetes, I would definitely recommend using the Kubernetes worker type so start your prefect flows as jobs that run in other pods. The isolation really helps for ensuring consistent behavior, and kubernetes pod events help for additional visibility when there are weird failures that aren't related to your flow code. It does require a learning curve if you're not comfortable with docker and k8s but I think it's absolutely worth it
l
Gotcha! That is the way we currently have things set up, but we were exploring a single container. I'll share your feedback with my team, thanks again 🙂
🙌 1