https://prefect.io logo
Title
p

Pedro Martins

12/10/2020, 6:53 PM
Hey everyone! I'm a new user of prefect and I can say this tool is very promising. After reading the documentation I didn't find a way to have prefect server a kubernetes deployment with prefect ui as a service. Does anyone here use it that way?
z

Zanie

12/10/2020, 7:34 PM
Perhaps you’ll want to use our experimental helm chart! https://github.com/PrefectHQ/server/tree/master/helm/prefect-server
p

Pedro Martins

12/10/2020, 7:59 PM
Thanks! Will try.
@Zanie I'm getting the following error in the prefect dashboard
VM6:1 POST <http://localhost:4200/graphql> net::ERR_CONNECTION_REFUSED
Any clue what could be?
z

Zanie

12/11/2020, 5:27 PM
Did you port-forward the apollo service to localhost?
If not, you need to change the graphql url in the UI to hit the public ip of the service
The user’s browser must be able to access the API
p

Pedro Martins

12/11/2020, 5:31 PM
I have changed the public ip but even after restarting the pod and the service it keeps hitting
localhost:4200
it seems to be hardcoded somewhere
z

Zanie

12/11/2020, 5:33 PM
Ah it can be cached in your browser
A hard refresh should help
You can also change it from within the UI on the home page
p

Pedro Martins

12/11/2020, 5:36 PM
hmm, no success.
z

Zanie

12/11/2020, 5:38 PM
Can you run
localStorage.clear()
in a web console?
p

Pedro Martins

12/11/2020, 5:44 PM
Cool! That solved the problem, thanks! But now I getting a different error 😅
index.js:51 Uncaught (in promise) Error: passed invalid or empty tenant object
    at l.setDefaultTenant (index.js:51)
p

Pedro Martins

12/11/2020, 5:56 PM
It's just not clear if should run this command locally or in some pod.
z

Zanie

12/11/2020, 5:57 PM
The prefect CLI is largely for interacting with the backend locally. You’re deploying a server so you’d designate
prefect backend server
then ensure your prefect config points to your server then create the tenant locally.
p

Pedro Martins

12/11/2020, 6:35 PM
Thanks @Zanie!
z

Zanie

12/11/2020, 6:36 PM
I’d be very happy to accept PRs improving that bit of documentation 😄 otherwise I’ll get to it when I can
Glad you got it working 🙂
p

Pedro Martins

12/11/2020, 6:46 PM
Of course! I'd be happy to contribute. It would be even better if we could set the host and apollo url as parameter of the
prefect server
command