diff --git a/cluster/addons/cluster-monitoring/google/heapster-controller.yaml b/cluster/addons/cluster-monitoring/google/heapster-controller.yaml index f53a0bf5652ed..fa8210b110b0a 100644 --- a/cluster/addons/cluster-monitoring/google/heapster-controller.yaml +++ b/cluster/addons/cluster-monitoring/google/heapster-controller.yaml @@ -1,5 +1,7 @@ -{% set metrics_memory = "200Mi" -%} -{% set eventer_memory = "200Mi" -%} +{% set base_metrics_memory = "200Mi" -%} +{% set metrics_memory = base_metrics_memory -%} +{% set base_eventer_memory = "200Mi" -%} +{% set eventer_memory = base_eventer_memory -%} {% set metrics_memory_per_node = 4 -%} {% set eventer_memory_per_node = 500 -%} {% set num_nodes = pillar.get('num_nodes', -1) -%} @@ -88,7 +90,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ metrics_memory }} + - --memory={{ base_metrics_memory }} - --extra-memory={{metrics_memory_per_node}}Mi - --threshold=5 - --deployment=heapster-v1.1.0.beta2 @@ -116,7 +118,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{eventer_memory}} + - --memory={{base_eventer_memory}} - --extra-memory={{eventer_memory_per_node}}Ki - --threshold=5 - --deployment=heapster-v1.1.0.beta2 diff --git a/cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml b/cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml index b3d93981bb062..0bfbf587ae05b 100644 --- a/cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml +++ b/cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml @@ -1,5 +1,7 @@ -{% set metrics_memory = "200Mi" -%} -{% set eventer_memory = "200Mi" -%} +{% set base_metrics_memory = "200Mi" -%} +{% set metrics_memory = base_metrics_memory -%} +{% set base_eventer_memory = "200Mi" -%} +{% set eventer_memory = base_eventer_memory -%} {% set metrics_memory_per_node = 4 -%} {% set eventer_memory_per_node = 500 -%} {% set num_nodes = pillar.get('num_nodes', -1) -%} @@ -89,7 +91,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ metrics_memory }} + - --memory={{ base_metrics_memory }} - --extra-memory={{ metrics_memory_per_node }}Mi - --threshold=5 - --deployment=heapster-v1.1.0.beta2 @@ -117,7 +119,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ eventer_memory }} + - --memory={{ base_eventer_memory }} - --extra-memory={{ eventer_memory_per_node }}Ki - --threshold=5 - --deployment=heapster-v1.1.0.beta2 diff --git a/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml b/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml index e18837cf0bcd1..98c5604297ca9 100644 --- a/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml +++ b/cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml @@ -1,5 +1,7 @@ -{% set metrics_memory = "200Mi" -%} -{% set eventer_memory = "200Mi" -%} +{% set base_metrics_memory = "200Mi" -%} +{% set metrics_memory = base_metrics_memory -%} +{% set base_eventer_memory = "200Mi" -%} +{% set eventer_memory = base_eventer_memory -%} {% set metrics_memory_per_node = 4 -%} {% set eventer_memory_per_node = 500 -%} {% set num_nodes = pillar.get('num_nodes', -1) -%} @@ -80,7 +82,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ metrics_memory }} + - --memory={{ base_metrics_memory }} - --extra-memory={{ metrics_memory_per_node }}Mi - --threshold=5 - --deployment=heapster-v1.1.0.beta2 @@ -108,7 +110,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ eventer_memory }} + - --memory={{ base_eventer_memory }} - --extra-memory={{ eventer_memory_per_node }}Ki - --threshold=5 - --deployment=heapster-v1.1.0.beta2 diff --git a/cluster/addons/cluster-monitoring/standalone/heapster-controller.yaml b/cluster/addons/cluster-monitoring/standalone/heapster-controller.yaml index b2ae37f5021fc..2a625363e1be0 100644 --- a/cluster/addons/cluster-monitoring/standalone/heapster-controller.yaml +++ b/cluster/addons/cluster-monitoring/standalone/heapster-controller.yaml @@ -1,4 +1,5 @@ -{% set metrics_memory = "200Mi" -%} +{% set base_metrics_memory = "200Mi" -%} +{% set metrics_memory = base_metrics_memory -%} {% set metrics_memory_per_node = 4 -%} {% set num_nodes = pillar.get('num_nodes', -1) -%} {% if num_nodes >= 0 -%} @@ -62,7 +63,7 @@ spec: - /pod_nanny - --cpu=100m - --extra-cpu=0m - - --memory={{ metrics_memory }} + - --memory={{ base_metrics_memory }} - --extra-memory={{ metrics_memory_per_node }}Mi - --threshold=5 - --deployment=heapster-v1.1.0.beta2