So, I had a little trouble bootstrapping Prefect S...
# prefect-server
So, I had a little trouble bootstrapping Prefect Server on Kubernetes. I used the Server Helm chart, then generated a deployment for the agent with the CLI, specifying --rbac and --api The resulting agent gets an error from the server saying that no tenants have been defined, and suggests using the UI to create one. However, the UI doesn’t seem to have any such tab/link.. I had to exec into the server container, install python and prefect, and then do
prefect server create-tenant --name default
Is there a more straightforward way to do that in future deployments?
Hey @Wilson Bilkovich, there's an optional job in the helm chart to create the tenant for you
Copy code
# jobs contain one-time job definitions

  # create a tenant so that Agent and UI are immediately usable after installation
    enabled: false
Oh, I see, so I’d put that in a YAML file and feed it to
at install time? I need to look harder at the knobs on that chart I guess. Thanks!
You can set helm options without providing a full yaml file as well
--set jobs.createTenant.enabled=true
I tried that as well, but the create Tenant job returns an error as it is using localhost
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200):
Can I somehow set the url for the create tenant job in the helm chart?
Which is defined here