Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fluentbit.affinity configuration #726

Merged
merged 1 commit into from May 9, 2023

Conversation

wigust
Copy link
Contributor

@wigust wigust commented May 8, 2023

What this PR does / why we need it:

Allows to configure fluentbit pods affinity, which is useful for adding a rule to not to schedule a pod on a node based on a label.

values.yaml example:

fluentbit:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: node-role.kubernetes.io/edge
            operator: DoesNotExist
          - key: fluentbit.cluster.local/schedulable
            operator: NotIn
            values:
            - "false"

Does this PR introduced a user-facing change?

None

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
@benjaminhuo
Copy link
Member

@wigust Thanks!

@benjaminhuo benjaminhuo merged commit 5adb861 into fluent:master May 9, 2023
2 checks passed
@wigust wigust deleted the fluentbit-affinity branch May 9, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants