Thread
#prefect-community
    m

    Marko Jamedzija

    1 year ago
    Hello 🙂 I recently deployed Prefect Server 0.14.15 on a test k8s cluster. After playing around with it I noticed that k8s agent only runs the flows for the first tenant I created. For the projects I created from other tenants, all their flows are just stuck in
    scheduled
    state (becoming late runs). Is this a bug, or there’s a way of configuring k8s agent to work with more than one tenant? If so, how? Thanks 🙂 (I deployed the services using the prefecthq helm chart)
    Kevin Kho

    Kevin Kho

    1 year ago
    Hi @Marko Jamedzija! Unfortunately, you need one agent per tenant. We don’t issue multi-tenant tokens at the moment so the Runner token you generated is only scoped to the first tenant.
    m

    Marko Jamedzija

    1 year ago
    Thanks 🙂 So I guess I need to deploy more agents (the provided helm chart only supports defining one, right?). I see that I can use
    update_agent
    from query api to make agent work with the specific tenant. Can this be configured during the deployment?
    x

    xyzz

    1 year ago
    I didn't even know server supports multiple tenants like cloud 🙂
    m

    Marko Jamedzija

    1 year ago
    It does, but each shows all flow runs on its dashboard 😞
    Kevin Kho

    Kevin Kho

    1 year ago
    I don’t think that can be configured during deployment because it would need to somehow get a new RUNNER token
    m

    Marko Jamedzija

    1 year ago
    I kinda gave up on the idea of using them due to the previous comment. But thanks! 🙂