X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fk8s_common.sh;h=a8c83ce49a10123bb6a66b6d839af1ad1e76f12b;hb=5cc0d5f3f4a0081f47a414b0c3679d85351ad398;hp=735c307665cb2aad5cce8d59ef0392f92b28970e;hpb=37289e2600c2c312113b20b6afcd69221703bc50;p=iec.git diff --git a/src/foundation/scripts/k8s_common.sh b/src/foundation/scripts/k8s_common.sh index 735c307..a8c83ce 100755 --- a/src/foundation/scripts/k8s_common.sh +++ b/src/foundation/scripts/k8s_common.sh @@ -9,14 +9,14 @@ fi case ${OS_ID_LIKE:-} in debian) DOCKER_VERSION=18.06.1~ce~3-0~ubuntu - KUBE_VERSION=${1:-1.13.0}-00 - K8S_CNI_VERSION=${2:-0.6.0}-00 + KUBE_VERSION=${1:-1.15.0}-00 + K8S_CNI_VERSION=${2:-0.7.5}-00 KUBELET_CFG=/etc/default/kubelet ;; rhel) DOCKER_VERSION=18.06.1.ce-3.el7 - KUBE_VERSION=${1:-1.13.0}-0 - K8S_CNI_VERSION=${2:-0.6.0}-0 + KUBE_VERSION=${1:-1.15.0}-0 + K8S_CNI_VERSION=${2:-0.7.5}-0 KUBELET_CFG=/etc/sysconfig/kubelet ;; *) @@ -31,7 +31,7 @@ debian) # Install basic software echo "Acquire::ForceIPv4 \"true\";" | sudo tee -a /etc/apt/apt.conf.d/99force-ipv4 > /dev/null sudo apt update - sudo apt install -y software-properties-common apt-transport-https curl + sudo apt install -y software-properties-common apt-transport-https curl python-pip # Install Docker as Prerequisite curl -4fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - @@ -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}"