https://prefect.io logo
Title
d

Daniel Nilsen

03/04/2022, 9:34 AM
Hi! I deployed the prefect UI and it askes me to point to the Prefect Server. I added the server URL and its working, however It keeps asking anyone how loads the UI for the first time to input the URL for the Prefect Server. Is there a way for me to set it once for anyone how visits the UI?
a

Anna Geller

03/04/2022, 10:20 AM
The only way to avoid that is to use Prefect Cloud instead of Prefect Server. Did you know that Prefect Cloud is completely free to use for a small team of up to 3 users with 20,000 free task runs each month? 20,000 is a lot to get started and there are automatic discounts as your number of task runs grows.
k

Kevin Kho

03/04/2022, 2:32 PM
The UI handles that logic on the local machine so yeah it needs to be set each time
d

Daniel Nilsen

03/04/2022, 4:45 PM
ah oki I see. thx!
k

Kevin Kho

03/04/2022, 4:47 PM
I was wrong. You can set the env variable before you start the server. Did you use helm or prefect server start?
d

Daniel Nilsen

03/07/2022, 2:15 PM
I used helm. The server is running in a kubernetes cluster
k

Kevin Kho

03/07/2022, 2:19 PM
You can set a default here
d

Daniel Nilsen

03/07/2022, 2:37 PM
nice! so
helm install my-deployment prefecthq/prefect-server --set PREFECT_SERVER__APOLLO_URL=123:456 -n my-namespace
would set the default to "123:456"?
k

Kevin Kho

03/07/2022, 2:42 PM
I am not so familiar with helm, but that looks good to me to override the value
👌 1