<p>I've a task list to Kubernetes pods by its kind. For Eg List kubernetes pods that are in different namespace using Jsonpath.
I'm using the below command which is not working.</p>
<pre><code>kubectl get pods -o jsonpath='{.items[?(@.items.kind==&quot;Elasticsearch&quot;)]}'
</code></pre>

P Nisanth Reddy
<p>You can try to use the following command.</p>
<pre><code>kubectl get pods -o jsonpath='{.items[?(@.kind==&quot;Pod&quot;)]}' --all-namespaces
</code></pre>
