Skip to content

bug: FluentD containerports are only opened for http and forward input plugins #1610

Open
@MZerbe

Description

@MZerbe

Problem

ContainerPorts for fluentd are only opened for the http and forward plugins configured in spec.globalInputs.
This makes any other fluentd input plugin unuseable.

To Reproduce

apiVersion: fluentd.fluent.io/v1alpha1
kind: Fluentd
metadata:
  name: fluentd
  namespace: fluentd
  labels:
    app.kubernetes.io/name: fluentd
spec:
  globalInputs:
    - id: in_http
      http:
        bind: 0.0.0.0
        port: 9880
    - id: in_syslog
      customPlugin:
        config: |
          <source>
            @type syslog
            @id in_syslog
            tag foo
            port 5140
            bind 0.0.0.0
          </source>
...

Will create a fluentd container with ports metrics:2021,http:9880.
The customPlugin port (or any other input plugins) are not being created.

Expected behavior

Container has open ports for every configured input plugin or the fluentd CRD allows to specify ports like the fluentbit CRD.

Your Environment

- Fluent Operator version: v3.3

How did you install fluent operator?

No response

Additional context

Code-References

It looks like that the containerPorts are statically coded to be only useable by the forward and http plugin.

Other issues which are correlated to this

  • The inputs.fluentd.fluent.io CRD is also not opening ports.

Contribution

With some guidance I am also open to make a contribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions