Hey! Is there a way to create the default tenant a...
# prefect-server
p
Hey! Is there a way to create the default tenant at deployment time using helm chart, so we would avoid typing "prefect create tenant"?
m
Hey Pedro. Currently there is no way to create a default tenant during deployment of the helm chart.
z
If you have any ideas let me know! From what I can tell, we’d have to create a whole sidecar container to run this at deployment time. Perhaps
prefect server
should just be creating a default tenant on startup independently from the Helm chart.
p
How about adding the command in the agent image prior to start the agent?
z
The agent isn’t a required part of the helm chart though
p
I'm also interested in this. Would it be possible to run a graphql query to create a tenant in one of the Prefect server services when it starts up? If so, which service would be best to initialise the agent?
p
My colleague come up with this solution: https://github.com/PrefectHQ/server/pull/183