Stan Lagun b0655459b9 Report correct Node capabilities to k8s
KubernetesCluster used to report 2 CPU cores and 4GB RAM
for each Node no matter what flavor was used for the Node.

This fix adds additional step to ask VM for its real capabilities
and provide those values during Node creation

Closes-Bug: #1447386
Change-Id: I786de0b5fcf5cf094397c8c88b2f03a88326b884
(cherry picked from commit dee685beaba7270b0258c8a5be2d028ecab6d2f8)
2015-04-23 11:09:35 +00:00

3 lines
56 B
Bash

#!/bin/bash
vmstat -s -SB | head -n1 | grep "[0-9]*" -o