
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)
3 lines
56 B
Bash
3 lines
56 B
Bash
#!/bin/bash
|
|
|
|
vmstat -s -SB | head -n1 | grep "[0-9]*" -o |