https://prefect.io logo
#prefect-community
Title
# prefect-community
j

Jai P

10/27/2022, 2:00 PM
👋 hullo! since 2.3.0 it appears we can add flow code directly into your docker image, and prefect won't need a remote storage block for a
DockerContainer
. I'm wondering, does that same logic apply to a
KubernetesJob
(since we also have to provide an image for that infra block)?
1
r

Ryan Peden

10/27/2022, 2:11 PM
It should. When a deployment runs, it determines if an infrastructure block is Docker image based by checking for an
image
property on the block.
KubernetesJob
has that. Then, if your deployment has a
path
attribute, Prefect will look there for your flow code, otherwise it will look in
/opt/prefect/flows
.
j

Jai P

10/27/2022, 2:52 PM
Awesome, thank you!