https://prefect.io logo
Title
m

Mia

08/31/2022, 5:57 PM
Hello, is there a documentation on how to set up prefect orion server? e.g. other than
PREFECT_API_URL
what other things need to be configured? I keep getting
[Errno -2] Name or service not known
I have prefect orion set up with helm in EKS
1
z

Zanie

08/31/2022, 6:48 PM
Hi! Perhaps the Helm chart at https://github.com/PrefectHQ/prefect-helm/tree/main/charts/prefect-orion would be helpful?
Are you getting this error on flow runs? or agents?
m

Mia

08/31/2022, 7:30 PM
Thank you. The prefect server is running in my eks cluster. The issue is deploying the flow. So in my local docker container where I have prefect
Version: 2.0.0
API version:         0.8.0
Python version:      3.9.10
installed, I’ve set following in the environment
PREFECT_PROFILE='default'
PREFECT_API_URL='<http://xyz.com/api>' (from env)
and when I run
prefect orion start
I get the error
[Errno -2] Name or service not known
. When I run
prefect deployment apply
or
prefect deployment run
, i get no error but I also don’t see any flow being deployed or running on http://xyz.com/runs
z

Zanie

08/31/2022, 7:32 PM
If the server is running on EKS, you don’t need to start it again locally.
If you run a flow locally with
PREFECT_API_URL
set, do you see the run on your server?
m

Mia

09/01/2022, 11:28 AM
yes i see them in the server logs
"GET /deployments/name/log-flow/log-simple HTTP/1.1" 200 OK
"POST /deployments/xxx-xxx-xxxx-9782/create_flow_run HTTP/1.1" 201 Created
but i do not see any flows in the ui
z

Zanie

09/01/2022, 5:31 PM
Is the UI connected to your API?
You can set the
PREFECT_ORION_UI_API_URL
where you are running the UI to your API’s endpoint
m

Mia

09/06/2022, 6:17 PM
I think the UI is connected to the API. I can see prefect UI at the endpoint but for some reason the flows are not being picked up. I tried setting the
PREFECT_ORION_UI_API_URL
env variable but it’s still not working
and just to clarify in Readme.md of https://github.com/PrefectHQ/prefect-helm, it says
helm install prefecthq/prefect-orion
on top but few lines down, it says
helm install .... prefecthq/prefect-sever
. Which one is it to helm install prefect orion server version?
Install the Helm chart

Using default options

$ helm install prefecthq/prefect-orion --generate-name
Setting some typical flags for customization

# The kubernetes namespace to install into, can be anything or excluded to install in the default namespace
NAMESPACE=prefect-orion
# The Helm "release" name, can be anything but we recommend matching the chart name
NAME=prefect-orion
# The path to your config that overrides values in `values.yaml`
CONFIG_PATH=path/to/your/config.yaml
# The chart version to install
VERSION=2022.06.30

helm install \
    --namespace $NAMESPACE \
    --version $VERSION \
    --values $CONFIG_PATH \
    $NAME \
    prefecthq/prefect-server
Got it to working. I set the
PREFECT_API_URL
in the values.yaml file and upgraded the installation so that it is available in the server where Prefect API is installed