<p>Is there a way to obtain hardware information (e.g. number of CPU cores, capacity of RAM) of an OpenShift 3.0 node programmatically? I could not find anything useful in the API references for <a href="https://docs.openshift.com/enterprise/3.0/rest_api/openshift_v1.html" rel="nofollow">OpenShift</a> or <a href="https://docs.openshift.com/enterprise/3.0/rest_api/kubernetes_v1.html#v1-nodesysteminfo" rel="nofollow">Kubernetes</a> (except for <code>NodeSystemInfo</code> in the Kubernetes API, which does not contain most of the hardware-level specs).</p>

<p>The Kubernetes <code>NodeStatus</code> has a field called <code>Capacity</code>, which is a list of resources with their corresponding amounts.</p>

<p>You can also see the Capacity in the output of <code>kubectl describe nodes</code></p>

<p>e.g.</p>

<pre><code>$ kubectl describe nodes my-node-1
Name:           my-node-1
...
Capacity:
 cpu:       1
 memory:    3801020Ki
 pods:      110
</code></pre>
