<p>I want to print a list of all my pods with the CPU requirements in a column</p>
<p>I'm pretty sure its something like
<code>kubectl get pods 'spec.containers[].resources.limits.cpu'</code></p>
<p>Can someone please give me the correct syntax?</p>

<p>You can also use the below command to get the cpu limit. It is cleaner than using jsonpath.</p>
<pre><code>kubectl get po -o custom-columns=&quot;Name:metadata.name,CPU-limit:spec.containers[*].resources.limits.cpu&quot; order by cpu limit with `--sort-by=&quot;.spec.containers[*].resources.limits.cpu&quot;`
</code></pre>
