Created
November 15, 2018 17:44
-
-
Save ipedrazas/a53d49258a7b6e668e3fac6c2b825b64 to your computer and use it in GitHub Desktop.
List docker images in a Kubernetes cluster
This file contains 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 | |
IMAGES=() | |
# Get helm releases | |
helm ls -q | while read i; do | |
echo "Processing release $i"; | |
# Get docker images per release | |
helm get "$i" | grep "image: \"" | awk '{print $2}'; | |
done | |
# remove duplicates | |
# awk '!a[$0]++' alpha03.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment