When starting a prefect server locally (or in clus...
# ask-community
j
When starting a prefect server locally (or in cluster), it asks to create a tenant. What exactly is the concept of tenant here? I cant find any docs on the subject. Does it matter I create a tenant from my local machine, although prefect is running at kubernetes?
n
Hi @Joël Luijmes - you're perfectly fine to create your tenant from your local machine, so long as it's pointed at your API. The tenant (or team, used interchangeably), is a unit of logical separation at the API level. In Prefect Server, this logical separation isn't really enforced because the normal enforcement is based on credentials baked into tokens that don't exist in Server; it was kept as a way to reduce the amount of code divergence between Cloud and Server.
j
Ah understood, thanks 🙂
z
If you can see a clear way to run this command from within the Helm chart I think it makes sense to create the default tenant at install time 🤷
j
Yea I was also thinking about that, and also deploying the agent in the helm chart. I’ll try to work on this in following days 🙂
Would be nice additions to the helm chart
Oh in the other thread I see you already linked a PR doing this 🙂
z
😄 feel free to submit a PR creating the default tenant though!