<p>can anyone help me with the command to view limits and requests of a pod or containers in a pod? I have tried
<code>Kubectl describe pod</code> ,
<code>kubectl get pod --output=yaml</code> ,
<code>kubectl describe node</code> -  shows the current limits but not the configured limits. I want to see the configured limits and requests in the yaml.</p>
<p>Thanks.</p>

Kowshhal
<p>-Try following command :</p>
<pre><code>kubectl get pods &lt;podname&gt; -o jsonpath='{range .spec.containers[*]}{&quot;Container Name: &quot;}{.name}{&quot;\n&quot;}{&quot;Requests:&quot;}{.resources.requests}{&quot;\n&quot;}{&quot;Limits:&quot;}{.resources.limits}{&quot;\n&quot;}{end}'
</code></pre>
<pre><code>Example:
kubectl get pods frontend -o jsonpath='{range .spec.containers[*]}{&quot;Container Name: &quot;}{.name}{&quot;\n&quot;}{&quot;Requests:&quot;}{.resources.requests}{&quot;\n&quot;}{&quot;Limits:&quot;}{.resources.limits}{&quot;\n&quot;}{end}'
Container Name: app
Requests:{&quot;cpu&quot;:&quot;250m&quot;,&quot;memory&quot;:&quot;64Mi&quot;}
Limits:{&quot;cpu&quot;:&quot;500m&quot;,&quot;memory&quot;:&quot;128Mi&quot;}
Container Name: log-aggregator
Requests:{&quot;cpu&quot;:&quot;250m&quot;,&quot;memory&quot;:&quot;64Mi&quot;}
Limits:{&quot;cpu&quot;:&quot;500m&quot;,&quot;memory&quot;:&quot;128Mi&quot;}
</code></pre>
