Hi all, I'm still on prefect 2.16, self-hosted and...
# ask-community
v
Hi all, I'm still on prefect 2.16, self-hosted and running kubernetes agent. Looking forward to migration to prefect 3, but as first step consider migrating to worker pool (agent is deprecated in prefect 3, right?). The question is - is it a normal practice to have worker pool per deployment? I have around 1000 deployments, each running different image + tons of different k8s configurations (config maps, secrets, resource limits etc). All served by single k8s agent, each deployment declares own job infrastructure with custom k8s settings. I would end up with 1000 work pools, is that ok?
b
Hi VK! Work pools and deployments don't have to be 1:1. Typically we recommend having one work pool per environment. In your case, I believe that it will be one work pool for your k8s cluster.
The work pool can have all of the default configurations you want for your jobs, but you if need to override those defaults, you can on a per-deployment basis (with job_variables)!
^ If you haven't seen these already, these guides should help