Merge "ci/labs: Add baremetal1 PDF/IDF config files"
authorCiprian Barbu <ciprian.barbu@enea.com>
Tue, 7 Apr 2020 11:25:15 +0000 (11:25 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Tue, 7 Apr 2020 11:25:15 +0000 (11:25 +0000)
src/foundation/scripts/k8s_common.sh

index 735c307..76092fd 100755 (executable)
@@ -101,4 +101,6 @@ sudo systemctl restart docker kubelet
 sudo modprobe br_netfilter
 _conf='/etc/sysctl.d/99-akraino-iec.conf'
 echo 'net.bridge.bridge-nf-call-iptables = 1' |& sudo tee "${_conf}"
+# Set memory overcommit to 0 for extra checks during memory allocation
+echo 'vm.overcommit_memory = 0' |& sudo tee -a "${_conf}"
 sudo sysctl -q -p "${_conf}"