X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fk8s_common.sh;fp=src%2Ffoundation%2Fscripts%2Fk8s_common.sh;h=76092fdd2c3a988ad90b7e3517201b604d75bcc2;hb=0ce548c0f2520c90939ef721cc3f2c9686129c35;hp=735c307665cb2aad5cce8d59ef0392f92b28970e;hpb=e4bb9f6bfb68185487a0106e9af518537ac404f2;p=iec.git diff --git a/src/foundation/scripts/k8s_common.sh b/src/foundation/scripts/k8s_common.sh index 735c307..76092fd 100755 --- a/src/foundation/scripts/k8s_common.sh +++ b/src/foundation/scripts/k8s_common.sh @@ -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}"