It seems there is no direct documentation or issue that mentions how to create a Persistent Volume Claim (PVC) for each new worker in a work pool definition.
However, you can consider developing a custom worker type. This would involve creating a custom implementation where the worker sets up the required execution infrastructure, including PVCs.
Here are some useful links that might help you get started:
1.
Developing a New Worker Type: This will guide you through creating a custom worker that can run your flows on your chosen infrastructure. It provides examples of configuration values like memory allocation, CPU, and even image names.
Link:
https://docs.prefect.io/latest/guides/deployment/developing-a-new-worker-type/
2.
Work Pools Concept: This explains how to set up and configure work pools via UI, CLI, REST API, or Terraform provider.
Link:
https://docs.prefect.io/latest/concepts/work-pools/
By creating a custom worker, you can ensure that each new worker instance can include a dedicated PVC during its setup.
If you encounter more specific questions or issues while implementing this, feel free to ask.