Hi all :slightly_smiling_face: Got a quick questio...
# fluent-bit
g
Hi all 🙂 Got a quick question regarding the exclude logs feature. We are looking into adding the annotation to pods without redeploying or restarting them and noticed that fluent-bit does not recognize the annotation unless the pod restarted/redeployed. Is there an active issue/feature regarding this or is there another approach we can test? Thanks!
p
The K8S filter has a cache to reduce load on the API server so it'll only refresh the labels and annotations for a new pod or after the timeout. Adding labels or annotations dynamically will not be picked up immediately for this reason.
g
Hi @Pat thanks for the answer. Is it possible to add a feature that will address it? for example optional refresh timer or maybe manual refresh command that can be then used in an automation of some sort?
p
I think there is already a cache refresh config option. Ultimately dynamic addition or removal will always have this issue, either we cache or we overload the API server with requests
Yeah, check the docs here: https://docs.fluentbit.io/manual/data-pipeline/filters/kubernetes There's an option to set the cache ttl which is disabled by default
g
oh cool thank you i will take a look at this one 🙏