Permalink
Find file Copy path
f8f1faf Jan 21, 2019
1 contributor

Users who have contributed to this file

executable file 18 lines (17 sloc) 620 Bytes
#!/usr/bin/env bash
## @copyright 2018 DennyZhang.com
## Licensed under MIT
## https://www.dennyzhang.com/wp-content/mit_license.txt
##
## Author : Denny <https://www.dennyzhang.com/contact>
## Description :
## https://cheatsheet.dennyzhang.com/cheatsheet-kubernetes-A4
## --
## Created : <2018-07-17>
## Updated: Time-stamp: <2018-12-30 19:07:42>
##-------------------------------------------------------------------
# https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/
kubectl get pods --all-namespaces -o jsonpath="{..image}" |\
tr -s '[[:space:]]' '\n' |\
sort |\
uniq -c