<p>I executing a command that give me cpu limit</p>
<pre><code>kubectl get pods -o=jsonpath='{.items[*]..resources.limits.cpu}' -A
</code></pre>
<p>How can I modify the command to show pod name and the memory limit also</p>

<p>You can format the jsonpath like this.</p>
<pre><code>kubectl get pods -Ao jsonpath='{range .items[*]}{&quot;name: &quot;}{@.metadata.name}{&quot; cpu: &quot;}{@..resources.limits.cpu}{&quot; memory: &quot;}{@..resources.limits.memory}{&quot;\n&quot;}{&quot;\n&quot;}{end}'
</code></pre>
