Hi @Tej_Singh_Rana /@Mohamed Ayman @Mumshad Mannambeth, while solving lightning . . .

Ninad Desai:
Hi @Tej_Singh_Rana /@Mohamed Ayman @Mumshad Mannambeth, while solving lightning lab question (Print the names of all deployments in the admin2406 namespace in the following format: DEPLOYMENT CONTAINER_IMAGE READY_REPLICAS NAMESPACE <deployment name> <container image used> <ready replica count> <Namespace> …) of CKA , I find its difficult to find the right path among spec.template.spec.container[].image , like which comes before which in a big file. Any special tip for that how to find the right path (for such long paths) .

Martin Vengai:
in that case, name and namespace can be found under metadata
container_image under spec.template.spec.containers[0].image etc

Martin Vengai:
view the deployment as json first to be able to see where to find each item.

Ninad Desai:
yes I do view it as json but looking at time limitation in exam, i find its little more time consuming to find each objects and as expected output format using jsonpath queries

Vijay:
in such case, always check the kubernetes cheat sheet page https://kubernetes.io/docs/reference/kubectl/cheatsheet/ for better solution. bookmarking this helps. It really did.

Sudeepthi Kakarla Naga:
@Ninad Desai: Install JQ and try the last two commands from “Viewing, finding resources section” : https://kubernetes.io/docs/reference/kubectl/cheatsheet/