Good morning. I have one question regarding storag...
# prefect-kubernetes
n
Good morning. I have one question regarding storage block. I do not want to store code in s3 bucket but rather store only result for re-tries and such. Do you know what is the best way to achieve that. Currently I am using Kubernetes Job with custom image which have all the code and dependency. Furthermore, can this be achieved without storage block.
This requires a storage block and does not store code.
n
Thank you, Can we use Local storage for Kubernetes Job? I do not think so but I would like to verify it.
z
Yes you can. If you want it to persist longer, you’d need to set up a persistent volume mount though.
n
Is there any example somewhere using such persistence inside flow.
z
Like how to create a persistent volume or… ?
n
No how to use it in
flow
z
The documentation I linked covers that
n
oh ok sorry I will take a look at it.
So, basically its just LocalFileSystem then right?
z
Yep!
That’s even what we use by default, so you could just change the default storage setting
PREFECT_LOCAL_STORAGE_PATH
n
How do I change that?
Is it a environment variable?
z
Yes that is a way to change it
You can also use
prefect config set
n
ok awesome I will give it a try.
Thanks
Do I need to add PV to agent as well?
z
Nope
👍 1