Skip to content
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

filter target pods by attributes #12

Open
linki opened this issue Feb 12, 2017 · 3 comments
Open

filter target pods by attributes #12

linki opened this issue Feb 12, 2017 · 3 comments

Comments

@linki
Copy link
Owner

linki commented Feb 12, 2017

from #2 (comment)

Another possibility is attributes.

@kfox1111 want do you have in mind?
something like this maybe:
all pods with some value for an attribute (e.g. serviceAccountName=default)
all pods containing at least one container with some value for an attribute (e.g. image=nginx )

@kfox1111
Copy link

Sorry. I said attributes, but was really intending to say annotations:
https://kubernetes.io/docs/user-guide/annotations/

Other systems like Prometheus use them to tag pods. For example, as needing to be scraped.

@linki
Copy link
Owner Author

linki commented Feb 13, 2017

makes sense, I'll add another issue as attributes may still be useful.

@linki linki changed the title filter by attributes filter target pods by attributes Feb 13, 2017
@linki
Copy link
Owner Author

linki commented Mar 4, 2017

@kfox1111 chaoskube v0.5.0 supports filtering by annotations. Thanks for the idea.

Give it a shot if you like. https://github.com/linki/chaoskube#filtering-targets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants