aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-06-04 07:06:39 -0700
committerVictor Morales <victor.morales@intel.com>2018-06-04 07:06:39 -0700
commit0d41bc49d18ebf126faa9a709dbe59b2bccc8ee1 (patch)
tree63b717a3f37cf7419dec51f4a9faa0ff9cc91deb
parentbe66121f520203c231fcb7b776f7223dfe92c9f1 (diff)
Increase the number of Pods per Nodes2.0.0-ONAP2.0.0-ONAP
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 <victor.morales@intel.com> Issue-ID: INT-478
-rwxr-xr-xlib/_installers27
-rw-r--r--lib/files/k8s-cluster.yml6
-rwxr-xr-xlib/oom2
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