Nodegroup-based multitenancy
Nodegroup-based multitenancy allows you to have multiple tenants (for example, different developer teams or customer environments) on the same cluster who can configure their own logging resources within their assigned namespaces residing on different node groups. These resources are isolated from the resources of the other tenants so the configuration issues and performance characteristics of one tenant doesn’t affect the others.
Sample setup
The following procedure creates two tenants (A and B) and their respective namespaces on a two-node cluster.
-
If you don’t already have a cluster, create one with your provider. For a quick test, you can use a local cluster, for example, using minikube:
-
Set labels on the nodes that correspond to your tenants, for example,
tenant-a
andtenant-b
. -
Install the logging operator
-
Apply the sample resources from the project repository. These create namespaces, flows, and sample outputs for the two tenants.
-
(Optional) Install a sample log generator application to the respective namespaces of your tenants. For example:
-
Check that your pods are up and running by running
kubectl get pods -A
If you have followed the examples, the output should look like:
-
Check logs coming from both tenants
kubectl logs -f -n infra svc/test-receiver
Expected output should show logs from both tenants