chaoskube
chaoskube copied to clipboard
filter target pods by attributes
from https://github.com/linki/chaoskube/issues/2#issuecomment-277843508
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 )
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.
makes sense, I'll add another issue as attributes may still be useful.
@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