From 0d41bc49d18ebf126faa9a709dbe59b2bccc8ee1 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 4 Jun 2018 07:06:39 -0700 Subject: Increase the number of Pods per Nodes The default maximum number of pods per kubelet node supported is 110. This configuration number can be increased in kubespray thru 'kubelet_max_pods' configuration value. This value has direct relationship with 'kube_network_node_prefix' which define the size of the internal network. Change-Id: I0ba33f2e44e5e243008b467ac8d3e34a07a61e90 Signed-off-by: Victor Morales Issue-ID: INT-478 --- lib/_installers | 27 ++++++++++++--------------- lib/files/k8s-cluster.yml | 6 +++++- lib/oom | 2 ++ 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/_installers b/lib/_installers index f972d36..3273f8c 100755 --- a/lib/_installers +++ b/lib/_installers @@ -235,23 +235,20 @@ function _install_ODL { # install_go() - Install GoLang package function install_go { - if is_package_installed golang-go; then + if $(go version &>/dev/null); then return fi - source /etc/os-release || source /usr/lib/os-release - case ${ID,,} in - *suse) - ;; - ubuntu|debian) - install_package software-properties-common - add-apt-repository -y ppa:gophers/archive - ;; - rhel|centos|fedora) - ;; - esac - update_repos + local version=1.10.2 + local os=linux + local arch=amd64 + local tarball=go$version.$os-$arch.tar.gz + + wget https://dl.google.com/go/$tarball + tar -C /usr/local -xzf $tarball + rm $tarball - install_package golang-go + export PATH=$PATH:/usr/local/go/bin + sed -i "s|^PATH=.*|PATH=\"$PATH\"|" /etc/environment } # install_dep() - Install dep GoLand tool @@ -433,7 +430,7 @@ function _install_kubectl { # install_helm() - Function that install Kubernetes Package Manager function install_helm { - local helm_version=v2.7.2 + local helm_version=v2.8.2 local helm_tarball=helm-${helm_version}-linux-amd64.tar.gz if ! $(helm version &>/dev/null); then diff --git a/lib/files/k8s-cluster.yml b/lib/files/k8s-cluster.yml index 3579e7a..418d67f 100644 --- a/lib/files/k8s-cluster.yml +++ b/lib/files/k8s-cluster.yml @@ -1,3 +1,7 @@ +# Configure the amount of pods able to run on single node +# default is equal to application default +kubelet_max_pods: 175 + # Valid bootstrap options (required): ubuntu, coreos, centos, none bootstrap_os: none @@ -207,7 +211,7 @@ kube_pods_subnet: 10.233.64.0/18 # internal network node size allocation (optional). This is the size allocated # to each node on your network. With these defaults you should have # room for 4096 nodes with 254 pods per node. -kube_network_node_prefix: 24 +kube_network_node_prefix: 18 # The port the API Server will be listening on. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}" diff --git a/lib/oom b/lib/oom index ea0bae0..fb2d594 100755 --- a/lib/oom +++ b/lib/oom @@ -80,6 +80,8 @@ function get_oom_images { source /var/onap/$project get_${project}_images done + install_go + go get github.com/electrocucaracha/onap_builder else _pull_images_from_${single_source_of_truth}_file fi -- cgit 1.2.3-korg