Score:2

Select pods by label for use by Fluent Bit in Kubernetes DaemonSet

cn flag

I have pods in Kubernetes with a label:

metadata:
  labels:
    fluentbit-loggable: true

I only want my Fluent Bit configuration to pick up those pods.

I followed this great tutorial on getting things set up, but I only have certain pods I want going to my destination. I don't have control over the applications (nor the pods, besides adding labels) so I figured there was a way to only have Fluent Bit use specific pods in the Kubernetes setup, but I couldn't find anything.

I'm going to Splunk, so I'm using this output configuration in order to get data there.

Anyone have a link to documentation on how to limit which pods to use or an example of selecting pods for the Fluent Bit DaemonSet via labels?

Aman avatar
cn flag
Hi `el n00b`, I am also looking for the same solution. Did you figure out one already?
el n00b avatar
cn flag
@Aman I did not. I actually wound up using an alternative to this and put the different tokens for Splunk's HTTP ingress in my Helm charts and injecting it that way. That way things don't go since they don't have a token.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.