https://prefect.io logo
Title
p

Pedro Martins

01/20/2021, 10:24 PM
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

Mariia Kerimova

01/20/2021, 10:33 PM
Hey Pedro. Currently there is no way to create a default tenant during deployment of the helm chart.
z

Zanie

01/20/2021, 10:35 PM
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

Pedro Martins

01/21/2021, 12:09 PM
How about adding the command in the agent image prior to start the agent?
z

Zanie

01/21/2021, 4:39 PM
The agent isn’t a required part of the helm chart though
p

Peter Roelants

02/03/2021, 11:08 AM
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

Pedro Martins

02/04/2021, 5:01 PM
My colleague come up with this solution: https://github.com/PrefectHQ/server/pull/183