Skip to content

Exclude annotation is not processed when pod has multiple containers #2339

Closed
@Scukerman

Description

Bug Report

Describe the bug
fluentbit.io/exclude annotation doesn't work on pod if the pod has multiple containers.
fluentbit.io/exclude_stdout-nginx also doesn't work.

To Reproduce

  • Enable K8S-Logging.Exclude in the fluentbit config.
  • Annotate a pod with at least two containers with the command (kubectl annotate po -l app=demo-server fluentbit.io/exclude='true', adjust it for your environment).
  • Delete the pod so fluent bit could reload the configuration and apply the annotations.

Expected behavior
All pod logs of all containers should be excluded from processing

Screenshots

Your Environment

  • Version used: 1.4.3
  • Configuration: https://pastebin.com/muDaDxB4
  • Environment name and version (e.g. Kubernetes? What version?): kubernetes 1.17.7
  • Server type and version: bare metal
  • Operating System and version: ubuntu
  • Filters and plugins: kubernetes

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions