How do I extract multiple values from kubectl with jsonpath
Use below command to get name and image
kubectl get pods -ao jsonpath='{range .items[*]}{@.metadata.name}{" "}{@.spec.template.spec.containers[].image}{"\n"}{end}'
It will give output like below:
name image