This command is for list pods with images and with specific labels in json: ``` . . .

Edith Puclla:
This command is for list pods with images and with specific labels in json:

kubectl get po  -n skywalker --selector=jedi=true -o jsonpath="{range .items[*]}{.metadata.name},{.spec.containers[0].image}{'\n'}{end}" > /root/jedi-true.txt

It is from one of the testers to practice for the exam.
My question is: How you can remember the syntax of this json query?

Hinodeya:
@Edith Puclla It’s the same key word of manifest normally, you should already know :wink: .About the syntax of the command line it’s an python concept where you have list and fonction and this context. So better way will be to pratice pratice again again :wink:

Hinodeya:
Another way will be to check this :wink: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#viewing-finding-resources