From a914c60e636406dcb84083290c78d0ded78ba926 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Tue, 19 Sep 2017 10:07:37 +0100 Subject: [PATCH] reduce cpu requests for mandatory pods --- roles/kubernetes-apps/ansible/defaults/main.yml | 2 +- roles/kubernetes/master/defaults/main.yml | 6 +++--- roles/network_plugin/calico/defaults/main.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/kubernetes-apps/ansible/defaults/main.yml b/roles/kubernetes-apps/ansible/defaults/main.yml index 3665254da..185416e57 100644 --- a/roles/kubernetes-apps/ansible/defaults/main.yml +++ b/roles/kubernetes-apps/ansible/defaults/main.yml @@ -5,7 +5,7 @@ kubednsautoscaler_version: 1.1.1 # Limits for dnsmasq/kubedns apps dns_memory_limit: 170Mi -dns_cpu_requests: 100m +dns_cpu_requests: 50m dns_memory_requests: 70Mi kubedns_min_replicas: 2 kubedns_nodes_per_replica: 10 diff --git a/roles/kubernetes/master/defaults/main.yml b/roles/kubernetes/master/defaults/main.yml index 076b8477c..7afed2a4e 100644 --- a/roles/kubernetes/master/defaults/main.yml +++ b/roles/kubernetes/master/defaults/main.yml @@ -24,18 +24,18 @@ force_etcd3: false kube_controller_memory_limit: 512M kube_controller_cpu_limit: 250m kube_controller_memory_requests: 100M -kube_controller_cpu_requests: 100m +kube_controller_cpu_requests: 50m kube_controller_node_monitor_grace_period: 40s kube_controller_node_monitor_period: 5s kube_controller_pod_eviction_timeout: 5m0s kube_scheduler_memory_limit: 512M kube_scheduler_cpu_limit: 250m kube_scheduler_memory_requests: 170M -kube_scheduler_cpu_requests: 80m +kube_scheduler_cpu_requests: 50m kube_apiserver_memory_limit: 2000M kube_apiserver_cpu_limit: 800m kube_apiserver_memory_requests: 256M -kube_apiserver_cpu_requests: 100m +kube_apiserver_cpu_requests: 50m # Admission control plug-ins kube_apiserver_admission_control: diff --git a/roles/network_plugin/calico/defaults/main.yml b/roles/network_plugin/calico/defaults/main.yml index 148a28082..a76241a26 100644 --- a/roles/network_plugin/calico/defaults/main.yml +++ b/roles/network_plugin/calico/defaults/main.yml @@ -25,7 +25,7 @@ global_as_num: "64512" calico_node_memory_limit: 500M calico_node_cpu_limit: 300m calico_node_memory_requests: 64M -calico_node_cpu_requests: 150m +calico_node_cpu_requests: 50m calicoctl_memory_limit: 170M calicoctl_cpu_limit: 100m calicoctl_memory_requests: 32M