How to list all containers of given pod in kubernetes
Nov 29, 2021
it is simple :)
k get pod <pod name> -n <namespace> -o jsonpath="{.spec.containers[*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c
it is simple :)
k get pod <pod name> -n <namespace> -o jsonpath="{.spec.containers[*].image}" |tr -s '[[:space:]]' '\n' |sort |uniq -c
Software Architect Virtusa https://youtube.com/krish