Skip to content

Find all pods with linkerd sidecars injected in them #5147

Answered by grampelberg
drewwells asked this question in General
Discussion options

You must be logged in to vote

Here's how you'd do that:

kubectl get deploy \
    -o custom-columns=NAME:.metadata.name,"ANNOTATIONS":".spec.template.metadata.annotations.linkerd\.io/inject"  \
    --no-headers | \
grep enabled

Note: labels would be great, this is just an immediate solution.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by grampelberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5147 on October 27, 2020 19:58.