Skip to content

bug: deploying fluent-operator and fluent-bit in different namespaces using "namespaceOverride" #1358

@btalakola

Description

@btalakola

Describe the issue

HI Team,

I have a requirement to deploy fluent-operator controller and fluent-bit daemonset in differnet namespaces. Found one parameter related to "namespaceOverride". But this is not used to configure the fluent-operator namespace.
https://github.com/fluent/fluent-operator/blob/release-3.2/charts/fluent-operator/values.yaml#L460
When I overrirde this value with fluent-operator namespace value, it didn't work.

fluent-operator deployment is using the release namespace itself.
https://github.com/fluent/fluent-operator/blob/release-3.2/charts/fluent-operator/templates/fluent-operator-deployment.yaml#L6

Also, one more observation, fluent-bit daemonset is created as part of fluent-bit reconciliation logic with the release namespace.
https://github.com/fluent/fluent-operator/blob/release-3.2/controllers/fluentbit_controller.go#L121
Namespace mentioned in fluent-bit custom resources is used for creating this daemonset.
https://github.com/fluent/fluent-operator/blob/release-3.2/pkg/operator/daemonset.go#L34
and this fluent-bit custom resource is also using release namespace.
Can you please guide me how to achieve deploying fluent-operator and fluent-bit daemonset in different namespace?

To Reproduce

Tried deploying fluent-operator and fluent-bit with different namespaces.

Expected behavior

fluent-operator and fluent-bit should be deployed in different namespaces.

Your Environment

- Fluent Operator version: v3.1.0
- Container Runtime: containerd
- Operating system: Ubuntu 22.04.4 LTS

How did you install fluent operator?

Deploy fluent-bit using fluent-operator helm chart.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions