Get list of all the pods showing name and namespace with a jsonpath expression.

Get list of all the pods showing name and namespace with a jsonpath expression.
A . Solution:
kubectl get pods -o=jsonpath="{.items[*][‘metadata.name’ , ‘metadata.namespace’]}"

Answer: A

Latest CKA Dumps Valid Version with 122 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
kut
kut
1 year ago

Your solution is wrong, the correct solution is:
kubectl get pod -A -o jsonpath='{range .items[*]}{.metadata.name}{“\t”}{.metadata.namespace}{“\n”}{end}’