-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
K8s Exclude Namespaces #3678
Comments
K8s API does not support namespace exclusion. However, you can use Thank you. |
hi @amir20 please help me how can I filter for only my label containers: Example I have these labels:
|
Hi @thioovoom, I just tested this. The filter option should work similar to the
So for you, I would expect to do If it doesn't work, enable debug and open a new issue so we can investigate. |
hi @amir20 thank you so much for your response, I able to filter my app as you mentioned above DOZZLE_FILTER=app.kubernetes.io/instance=app-api, but when I add more label in filter, it's not working, this is my config:
|
@ngoisaoquay Dozzle only supports comma-separated filters, which translate to I suggest creating a new label, such as The approach for namespaces is similar. In the future, I might implement sets like I am tracking the usage of Dozzle with K8s. It is still very small. Hope to see more traction so that I can spend more time. |
Thank you so much @amir20 I can filter container with dozzle=enabled as you mentioned. |
Thanks @amir20 I think you outlined some other good options here, espically if the k8s API makes this difficult. The only other thought I had was the opposite, rather than excluding namespaces, at least allow a list of included namespaces. But I also recognize that using labels could do the same thing, so low priority or could close this issue. |
Yes, @anengineerdude. I believe it's worth exploring how Kubernetes handles labels and filters. Docker's labels are quite limited, and currently, Dozzle supports Docker, Podman, Swarm, and Kubernetes. I need to consider carefully how to build specific features that would enable filtering exclusively for Kubernetes. |
Describe the feature you would like to see
When running in K8s mode allow for excluding namespaces. This would support a list of namespaces that Dozzle should ignore and not monitor.
Describe how you would like to see this feature implemented
Environment variable for a list of namespaces or a comma seperated string. Example
DOZZLE_EXCLUDE_NAMESPACES
Describe any alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: