Prefect on Kubernetes with nginx Ingress /prefect
To answer my own question of how to run Prefect with nginx on Kubernetes (behind a /prefect ingress)
here’s the recipe:
Copy code
git clone git@github.com:PrefectHQ/prefect.git
cd prefect
git checkout 2.10.6
# edit Dockerfile to set `PREFECT_UI_SERVE_BASE=/prefect`
docker build --arg PYTHON_VERSION=3.10 -t prefect:base2.10.6-python3.10 -f Dockerfile .
Then you need to inherit from this image for building the Prefect agent:
Copy code
FROM prefect:base2.10.6-python3.10
RUN pip install -r requirements.txt
...
@justabill I think the Prefect dev team should probably introduce Docker arguments such that it is easier
to achieve that without hacking the base image.
I can elaborate more here or in DM.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.