Skip to content

[Question] How to properly use in_kubernetes_events plugin #7886

@jfusterm

Description

@jfusterm

Hi guys,

We recently started testing and using the plugin in_kubernetes_events, which is awesome by the way, and given that we were already using fluent-bit in DaemonSet mode to collect the logs from all our Kubernetes nodes, we updated the configuration file to include something like with its own output.

    [INPUT]
        Name            kubernetes_events
        Tag             kubernetes_events
        kube_url        https://kubernetes.default.svc
        DB              /var/log/fluentbit-kubernetes-events.db
        interval_sec    5

It worked out-of-the-box, just seen a slightly Pod CPU increase usage, which got us thinking if maybe we should deploy a separate fluent-bit in Deployment mode just for this plugin. Given that we just need one fluent-bit collecting Kubernetes events, it made sense.

The funny think is that we haven't seen event log duplication when using it as a DaemonSet, but we haven't seen either any recommendation in the documentation on how to run this specific plugin, or if there might be side effects if we have many fluent-bits using the in_kubernetes_events plugin.

Any general recommendation on this topic would be highly appreciate it.

Thanks!

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