Sung Kim
07/06/2023, 7:03 AMMarvin
07/06/2023, 7:04 AMprefect server start
. This will spin up a local Prefect server UI. By default, the URL for the Prefect server UI is http://127.0.0.1:4200 [^1^][^3^].
You'll also need to set the PREFECT_API_URL
to point to your Prefect server instance. This can be done with the command prefect config set PREFECT_API_URL="<http://127.0.0.1:4200/api>"
[^1^][^2^].
Please note that if you're running Prefect inside a container, such as a Docker container, you must set the API server address [^1^].
If you're trying to access the Prefect UI running in a Kubernetes cluster, you can use the kubectl port-forward
command to forward a port on your local machine to an open port within the cluster. For example, kubectl port-forward deployment/prefect-dev 4200:4200
[^4^].
I hope this helps. If not, well, at least we tried.
[^1^]: Hosting a Prefect server
[^2^]: Prefect Orchestration Tutorial
[^3^]: Hosting a Prefect server
[^4^]: Contributing to Prefect