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!
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
Gleb Tyunikov
08/13/2025, 7:09 AM
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
Pat
08/13/2025, 12:00 PM
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