-
Notifications
You must be signed in to change notification settings - Fork 145
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
Support for namespace label selectors #2500
Comments
Does kubernetes support listing pods by namespace labels? I've never tried. If not then it makes it much more difficult to support this request. Also, are you expressing this limitation with the latest release which includes the ability to provide namespace and container globs? |
Hi, I do not think it is supported. But is listing pods by namespace label really necessary as it would just avoid one additional filtering step? I assume from the question, the current code just lets I am aware of the latest version and the globbing feature. While this is useful for some situations, label selection is more flexible and seems in-line with the already implemented API. In my use case, I have a lot of namespaces I would want to select for log-forwarding, regardless of the applications in them. As they do not have a common naming scheme, globbing is not really helping me here. But I have easier access to the namespace labels (and their modification to fit the use-case). |
Currently vector essentially is capable of doing the equivalent of Looking at the available config, it may be possible to accomplish this using this setting. This will require investigation. Consider trying it yourself by:
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Hi,
at the moment, the
ClusterLogForwarder
API can only handle log selection by static namespaces or pod labels. It would be nice if label selectors can be supported for namespaces as well. This would enable much easier log selection when multiple namespaces do not share a commonglob
expression.The text was updated successfully, but these errors were encountered: