Created
September 5, 2018 18:17
-
-
Save jcantrill/a0d7a612a5cab8eae9adba3d32bc6776 to your computer and use it in GitHub Desktop.
get the images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pod=$1 | |
echo "DCs" | |
echo "----" | |
oc get dc -n logging -o yaml | grep image: | sort | uniq | |
echo "DSs" | |
echo "----" | |
oc get ds -n logging -o yaml | grep image: | sort | uniq | |
echo "Pods" | |
echo "----" | |
for p in $(oc get pods -n logging -o jsonpath={.items[*].metadata.name}); do | |
echo "$p : $(oc get pod $p -n logging -o yaml | grep image: | sort | uniq)" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment