how do you specify an infrastructure block using p...
# prefect-community
a
how do you specify an infrastructure block using projects with
prefect deploy
?
prefect deployment build
has the
-ib
flag but
prefect deploy
does not
a
Hey @Andy Dienes! Projects use typed work pools and workers instead of infrastructure blocks. You can think of a worker as an infrastructure block and an agent combined and any configuration that would normally live on the infrastructure block lives on the work pool instead. We haven’t yet created workers for all of the existing infrastructure blocks, but depending on which infra block you want to use, a analogous worker might be available.
a
I appreciate the explanation. I think I'm running into an issue similar to these two: https://prefect-community.slack.com/archives/C048ZHT5U3U/p1678238789872829 https://prefect-community.slack.com/archives/CL09KU1K7/p1675872619981129 and I saw some proposed fixes to set
nodeselector
in an infrastructure block, but wasn't sure how to do that with workers. this is all running on kubernetes
so would this be some config I need to pass to the work pool?
a
You can customize the template used for the job manifest by editing the base job template of the work pool. How to do that is briefly described in the documentation for the Kubernetes worker and the documentation on how a work pool base job template works might also be useful.