Prefect Agent in local failed to finish the workflow with Prefect Orion in Kubernetes

I finally made it work! Thanks for the help.

Here is the “fix” pull request: https://github.com/Hongbo-Miao/issue-prefect/pull/1/files

These files got updated to new ones:

print_platform/Dockerfile

FROM docker.io/prefecthq/prefect:2.7.5-python3.11

COPY ["print_platform/requirements.txt", "./"]
RUN pip install --no-cache-dir --requirement=requirements.txt

COPY ["print_platform/", "/opt/prefect/flows/print_platform/"]

prefect-orion/my-values.yaml

orion:
  env:
    - name: PREFECT_API_URL
      value: http://prefect-orion.hm-prefect.svc:4200/api
    - name: PREFECT_ORION_UI_API_URL
      value: http://localhost:4200/api

postgresql:
  auth:
    password: passw0rd
1 Like