can 2 instances of loki (same version, latest stable) use same s3 bucket in the same k8s cluster.
Just 2 instances of loki are deployed in different namespaces.
can 2 instances of loki (same version, latest stable) use same s3 bucket in the same k8s cluster.
Just 2 instances of loki are deployed in different namespaces.
No. You can have 2 clusters or 1 cluster with tenants.
Thanks for the response, can you please elaborate a little ?
A Loki cluster contains a S3 bucket (or equivalent concept in other object storage). This contains the logs and the index. You can’t have another database messing with the index. You could end up in situations where Loki 1 is rewriting Loki 2’s index and then you can’t read some data already stored.
I don’t see the reason why such a thing would exist. Loki 1 and Loki 2 would see and write the same data, meaning they have the same state, meaning they are the same database cluster, and then it’s only a question of scaling, not access. But Loki scales horizontally so there is no reason to try that.
I assume your idea pertains to the fact that you have 2 different namespaces and you don’t want to allow communication between namespaces. Most users have a “monitoring” namespace where all namespaces can send data.
Finally, if the goal is data segregation, it’s possible with 1 Loki cluster since there is both multi-tenancy and Label based access control available.