Enable CPU and Memory accounting on vagrant

This commit is contained in:
derekwaynecarr
2016-05-24 11:23:09 -04:00
parent ff07195f4e
commit 6090bc9112
3 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
function enable-accounting() {
mkdir -p /etc/systemd/system.conf.d/
cat <<EOF >/etc/systemd/system.conf.d/kubernetes-accounting.conf
[Manager]
DefaultCPUAccounting=yes
DefaultMemoryAccounting=yes
EOF
systemctl daemon-reload
}
function prepare-package-manager() {
echo "Prepare package manager"