Hey everyone! I'm a new user of prefect and I can ...
# prefect-server
p
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
Perhaps you’ll want to use our experimental helm chart! https://github.com/PrefectHQ/server/tree/master/helm/prefect-server
p
Thanks! Will try.
@Zanie I'm getting the following error in the prefect dashboard
Copy code
VM6:1 POST <http://localhost:4200/graphql> net::ERR_CONNECTION_REFUSED
Any clue what could be?
z
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
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
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
hmm, no success.
z
Can you run
localStorage.clear()
in a web console?
p
Cool! That solved the problem, thanks! But now I getting a different error 😅
Copy code
index.js:51 Uncaught (in promise) Error: passed invalid or empty tenant object
    at l.setDefaultTenant (index.js:51)
p
It's just not clear if should run this command locally or in some pod.
z
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
Thanks @Zanie!
z
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
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