Hello, do we have an example on how to create/mana...
# general
a
Hello, do we have an example on how to create/manage tenants using Kubernetes Pods via helm or other option https://docs.pinot.apache.org/basics/components/tenant#server-tenant
Whats the place here to specify a tag for
server
pod. So that it is started under a specific tenant
@Xiang Fu: Any inputs here, much appreciated. Thanks
Ok, I checked looks like adding tags is a dynamic functionality which needs to be performed once the cluster is up and running. In that case which API do you recommend we invoke to start creating tenants. Since the initial setup will be assigned to
DefaultTenant
x
Tenant tags are not managed by k8s. You can use Pinot api to manage them once they are up
a
Got it. @Xiang Fu: Can you guide me which API to start with to manage tags ?
a
@Xiang Fu: Quick question. I see by default server and broker get created under DefaultTenant. Does that mean first step is to update them to a specific namedTenant ?
Since my DefaultTenant had 2 brokers, when I try to create a named tenant with
numberOfInstances
= 1 I get this error :
Copy code
Failed to allocate server instances to Tag : <redacted>, Current number of untagged server instances : 0, Request asked number is : 1
How can i get the default to be untagged to use those instances
x
you can add more tenant names to existing instances
a
Gotcha. So call the
Put
API ?
@Xiang Fu: Are you recommending i use
Instance
Api's ? My use case is I want to remove
DefaultTenant
and create dedicated tenants based on different tables
x
Right, then you can edit the tag
Here are the APIs
a
Got it ! Thanks a lot !
@Xiang Fu: Just checking, is there a reason why Tenant tags are not managed by k8s ?
@Priyank Bagrecha: FYI ^
Reason we need flexibility was one of our customer has higher cpu/memory requirement compared to other. How can we make POD assignment in that case ? Since all POD'S will be of same memory/cpu footprint if configured via helm