11/10/2022, 2:44 AM
I was able to setup a prefect agent in kubernetes (GKE), and now I'm a little confused on next steps. If you are to create a flow deployment, does that code deployment need to be in a storage block? I'm assuming it will have to be. I tried a flow run without the storage block and got an error saying it couldn't find the flow (and it referenced my local computer's path).

Michiel Verburg

11/10/2022, 9:20 AM
In my understanding, yes you need the storage block. I recently tried this out by for example creating a new flow file, deployment etc. on my local machine, and then doing
prefect deployment build … --apply
without a storage block configured, while having my prefect config setting
pointing to my remote development server that actual hosts prefect and it’s agents. Without storage block configured, I got an error as well. The moment I configured a storage block, e.g. azure blob storage, then it worked
:upvote: 2

Rob Freedy

11/10/2022, 3:37 PM
This is correct, for KubernetesJobs, local storage is not supported, so remote storage has to be configured: