Hi all, I was wondering if it was possible to com...
# fluent-operator
j
Hi all, I was wondering if it was possible to compose a fluentbit configuration from both a ClusterFluentBitConfig and several FluentBitConfig. My use case is a cluster where I have several namespaces, one for each tenant, and each of the tenants have their own elasticsearch ingest credentials. So the result I'm after is a single fluentbit daemonset, in my namespace, fetching all the Output configurations from the other namespaces. Is this possible? I don't find any examples in the documentation
Looking further in the code, it should work. I'm debugging and it fails in my case as the operator isn't fetching the namespaced FluentBitConfig.
Found my issue The
spec.namespaceFluentBitCfgSelector
in
<http://fluentbit.v1alpha2.fluentbit.fluent.io|fluentbit.v1alpha2.fluentbit.fluent.io>
is not supposed to express label selectors for the namespace where the
FluentBitConfig
lives, but instead for the labels of the
FluentBitConfig
itself. With regards to that, the
FluentBit
CRD description of the field could be updated, as it currently may be missleading
NamespacedFluentBitCfgSelector selects the namespace FluentBitConfig associated with this FluentBit
Notice it says namespace - rather than namespaced. This can make people think about the label filtering being applied to the namespace itself (that contains FluentBitConfig resources) rather than the the labels in the namespaced resouce itself