[MONIT-4187] Allow specifing a namespace filter for logs
This changeset includes in a separate commit the necessary bits to roll the logs daemonset when there's a configuration change, same as the events component.
I've tested this with
logs:
enabled: true
namespaces:
- monitoring
- nacho
fluentbit:
enabled: true
and no trace of pods in kube-system
or other namespaces whatsoever.
The filter allows to exclude, instead of include so somebody could allow logs from any namespace except from kube-system
. For my use case this is good enough, I'd rather to control what's sent than what's not sent but happy to discuss. Also to discuss if we want to send everything by default, of course.
Edited by Nacho Barrientos
Merge request reports
Activity
added 1 commit
- 1f8f39f7 - [MONIT-4187] Add option to only send logs from a list of namespaces
added 1 commit
- 7615a447 - [MONIT-4187] Add option to only send logs from a list of namespaces
requested review from @bgarrido
reset approvals from @bgarrido by pushing to the branch
Please register or sign in to reply