Pedro Martins

    Pedro Martins

    1 year ago
    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?
    Michael Adkins

    Michael Adkins

    1 year ago
    Perhaps you’ll want to use our experimental helm chart! https://github.com/PrefectHQ/server/tree/master/helm/prefect-server
    Pedro Martins

    Pedro Martins

    1 year ago
    Thanks! Will try.
    @Michael Adkins 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?
    Michael Adkins

    Michael Adkins

    1 year ago
    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
    Pedro Martins

    Pedro Martins

    1 year ago
    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
    Michael Adkins

    Michael Adkins

    1 year ago
    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
    Pedro Martins

    Pedro Martins

    1 year ago
    hmm, no success.
    Michael Adkins

    Michael Adkins

    1 year ago
    Can you run
    localStorage.clear()
    in a web console?
    Pedro Martins

    Pedro Martins

    1 year ago
    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)
    Pedro Martins

    Pedro Martins

    1 year ago
    It's just not clear if should run this command locally or in some pod.
    Michael Adkins

    Michael Adkins

    1 year ago
    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.
    Pedro Martins

    Pedro Martins

    1 year ago
    Thanks @Michael Adkins!
    Michael Adkins

    Michael Adkins

    1 year ago
    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 🙂
    Pedro Martins

    Pedro Martins

    1 year ago
    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