Quick question. I’m just going through the Kuberne...
# ask-community
a
Quick question. I’m just going through the Kubernetes deployment tutorial. In my prefect.yaml, I have
directory: /opt/prefect/flows
under
prefect.deployments.steps.set_working_directory:
, and I’m in a local directory called “tutorial”, and have the hello.py flow in a directory under tutorial called “flows”. When the docker image is created, the working directory ends up as
/opt/prefect/tutorial
, so it can’t find
/opt/prefect/flows
If I change directory to “/opt/prefect/tutorial/flows”, then it errors out with
FileNotFoundError: [Errno 2] No such file or directory: '/opt/prefect/tutorial/flows/flows/hello.py'
, adding another “flows” directory. Need a little guidance as to how these working directories and paths that it looks under all work. Thanks!