wiretrack

    wiretrack

    1 year ago
    hey guys, still trying my way into deploying the server on k8s, but having trouble with the agent. i used mostly the same template generated by
    prefect agent kubernetes install
    but I keep getting a
    ClientError
    with
    Name os service not known
    . what I can think of is the lack of a
    tenant
    , so I created one with
    slug=default
    and
    name=default
    . I’m using
    PREFECT__CLOUD___API=<http://prefect-apollo-service:4200/graphql>
    .
    RBAC
    is in place, so running out of ideas on what I might be doing wrong. the UI also can’t connect to
    apollo-service
    , but health checks for apollo are ok, and
    curl localhost:4200/graphql
    also works inside
    apollo
    pod. Also tried querying apollo-service from within the agent pod with:
    curl \
    -X POST \
    -H "Content-Type: application/json" \
    --data '{ "query": "{ tenant { id } }" }' \
    <http://prefect-apollo-service:4200/graphql>
    And it works fine, I get the tenant Id. Any inputs? Thanks!
    For anyone that might come across a similar issue ni the future, the problem is the
    env_vars
    : basically even if the health checks are ok, communication between services might not be working because of the way environment variables was passed, a more detailed explanation in this issue: https://github.com/PrefectHQ/prefect/issues/4738