Michał Augoff
06/30/2022, 10:22 PMprefect kubernetes manifest orion and I’m facing some issues with the UI which seems to not be able to connect to the database (it’s empty). It’s a similar issue to this one but on k8s, not locally. The agent container communicates with the server container (API) just fine and is able to pick up flows. I’m also able to connect to the API via prefect CLI on my local machine, create work queues, deployments, trigger flows etc (which are then picked up by the k8s agent). But UI is empty and I’m not able to see/create e.g. worker queues. Any idea what I might be missing?Anna Geller
Zanie
PREFECT_API_URL locally and the PREFECT_ORION_UI_API_URL in the container. These values should match.Zanie
PREFECT_ORION_UI_API_URL tells the UI where to have clients (e.g. your web browser) make API requests to.Anna Geller
Zanie
Michał Augoff
07/01/2022, 2:44 AMPREFECT_API_URL. I then set PREFECT_API_URL inside my local ~/.prefect/profiles.toml (default profile) to PREFECT_API_URL = "http://<POD-IP>:4200/api" and this seems to be enough to query the API to create/get work queues, log flow runs, create deployments etc. When I open the same exact URL in my browser, I see prefect UI but there’s no data in there. Are you saying I also need to set PREFECT_ORION_UI_API_URL inside the api container? Isn’t it set to PREFECT_API_URL by default? (and PREFECT_API_URL by default is set to local inside the API container). To clarify, I do not interact with my local orion.db at all (in fact I deleted it from ~/.prefect , so it doesn’t even exist), just the db running inside the podMichał Augoff
07/01/2022, 2:57 AMprefect orion start locally does help in the sense that I’m able to interact with the k8s api at 127.0.0.1:4200 but obviously I’d like to do it directly at <POD-IP>:4200 without running a server locallyZanie
Are you saying I also need to setYes, to the URL that users of the UI need to make API requests. This is because the requests to the API come from the user’s browser, not local to the UI pod.inside thePREFECT_ORION_UI_API_URLcontainer?api
Zanie
Michał Augoff
07/01/2022, 4:44 AM