chaoskube icon indicating copy to clipboard operation
chaoskube copied to clipboard

filter target pods by attributes

Open linki opened this issue 8 years ago • 3 comments

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 )

linki avatar Feb 12 '17 15:02 linki

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.

kfox1111 avatar Feb 13 '17 17:02 kfox1111

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

linki avatar Feb 13 '17 18:02 linki

@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

linki avatar Mar 04 '17 18:03 linki