How to list all containers of given pod in kubernetes

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store