<p>I tried this:</p>
<pre><code>k get po -n myns -o=custom-columns=NAME:.spec.containers.name,MEMREQ:.spec.containers.resources.requests.memory,MEMLIM:.spec.containers.resources.limits.memory,CPUREQ:.spec.containers.resources.requests.cpu,CPULIM:.spec.containers.resources.limits.cpu
</code></pre>
<p>but it returned me this:</p>
<pre><code>    NAME     MEMREQ   MEMLIM   CPUREQ   CPULIM
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
    &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;   &lt;none&gt;
</code></pre>

Win32Sector
<p>Note that <code>containers</code> is a list, so you would have to either supply the index or <code>*</code> for all containers.</p>
<p>Here is an example from my environment, you can tweak your rest of the command.</p>
<pre><code>kubectl get po -o=custom-columns=NAME:.spec.containers[*].name
NAME
nginx
nginx



kubectl get po -o=custom-columns=NAME:.spec.containers.name
NAME
&lt;none&gt;
&lt;none&gt;
</code></pre>
<p>To visualize the structure, here is an example with one pod, notice that a list is returned in the output of this command:</p>
<pre><code>kubectl get pod my-nginx-66b6c48dd5-gq6vd  -o jsonpath='{.spec.containers}'
[{&quot;image&quot;:&quot;nginx:1.14.2&quot;,&quot;imagePullPolicy&quot;:&quot;IfNotPresent&quot;,&quot;name&quot;:&quot;nginx&quot;,&quot;ports&quot;:[{&quot;containerPort&quot;:80,&quot;protocol&quot;:&quot;TCP&quot;}],&quot;resources&quot;:{},&quot;terminationMessagePath&quot;:&quot;/dev/termination-log&quot;,&quot;terminationMessagePolicy&quot;:&quot;File&quot;,&quot;volumeMounts&quot;:[{&quot;mountPath&quot;:&quot;/var/run/secrets/kubernetes.io/serviceaccount&quot;,&quot;name&quot;:&quot;default-token-cbmr2&quot;,&quot;readOnly&quot;:true}]}]
</code></pre>
