Last updated 4 years ago
Was this helpful?
if you'd like to get a list of the images running in a given cluster...
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}"
The jsonpath is interpreted as follows:
.items[*]: for each returned value
.items[*]
.spec: get the spec
.spec
.containers[*]: for each container
.containers[*]
.image: get the image
.image
Reference: