<p>Do we have some Api in Kubernetes to know if we have enough resources to run deployment of pods before sending the request on prem envirenment?</p>
<p>the reason I need it is because I want to run a pod from another pod and I want to make sure I have enough of resources.</p>

Ohad
<p>To get information about CPU(cores), CPU%, memory, and memory% usage of your nodes, you can run <code>kubectl top nodes</code> command.</p>
<p>For example:</p>
<pre><code>1 kubectl top node --use-protocol-buffers
2 NAME           CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
3 example-node   500m         50%    573Mi           20%
</code></pre>
<ul>
<li>CPU(cores) - 500m means 500 millicpu. 1000m is equal to 1 CPU, hence 500m means 50% of 1 CPU.</li>
<li>CPU% - Total CPU usage percentage of that node.</li>
<li>Memory - Memory being used by that node.</li>
<li>Memory% - Total memory usage percentage of that node.</li>
</ul>
