Linux Foundation CKA Question Answer
Get list of all the pods showing name and namespace with a jsonpath expression.
See the solution below.
kubectl get pods -o=jsonpath="{.items[*]['metadata.name'
, 'metadata.namespace']}"
TESTED 11 Jul 2025
Copyright © 2014-2025 ACE4Sure. All Rights Reserved