Hi guys, did anyone manage to mount volume (kubern...
# ask-community
o
Hi guys, did anyone manage to mount volume (kubernetes) to every prefect deployment that is created by specific workpool? how can I mount to specific prefect deployment a volume, and to use the content of it for environment variable
b
Hi Ofek! I believe that you should be able to add a volumeMount to your work pool by editing the JSON of the work pool's base job template. This should ensure that the volumeMount is applied to all flow deployments tied to that particular pool. You can add the volume mount by editing the base job template of your work pool in the 'advanced' tab of the work pool's page.
Unfortunately I don't have an example on hand that I can give to you, but I was able to spot another community user that shared their work pool's customized base job template, which has the volume mount present.
Here's a screenshot of the advanced tab for your reference
I'd also recommend checking out the advanced settings tip in the "create a k8s work pool" guide. In essence, as you're adding things to the work pool's
job_configuration
, you can include an accompanying variable under the
variables
section of the template.