From b120ce98f129580fb5c8bfc1bb52a98f6fa1b3b3 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Fri, 3 Jun 2016 16:12:37 -0700 Subject: [PATCH] Set hard memory eviction thresholds for GCE clusters. Signed-off-by: Vishnu kannan --- cluster/gce/config-default.sh | 3 +++ cluster/gce/config-test.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index 3a043612b5a..c8bb0ac97c2 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -138,3 +138,6 @@ OPENCONTRAIL_PUBLIC_SUBNET="${OPENCONTRAIL_PUBLIC_SUBNET:-10.1.0.0/16}" HAIRPIN_MODE="${HAIRPIN_MODE:-promiscuous-bridge}" # promiscuous-bridge, hairpin-veth, none # Optional: if set to true, kube-up will configure the cluster to run e2e tests. E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false} + +# Evict pods whenever compute resource availability on the nodes gets below a threshold. +EVICTION_HARD="${EVICTION_HARD:-memory.available<100Mi}" diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index 8d15479c536..f729f3d84d6 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -170,3 +170,6 @@ E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false} # Optional: if set to true, a image puller is deployed. Only for use in e2e clusters. # TODO: Pipe this through GKE e2e clusters once we know it helps. PREPULL_E2E_IMAGES="${PREPULL_E2E_IMAGES:-true}" + +# Evict pods whenever compute resource availability on the nodes gets below a threshold. +EVICTION_HARD="${EVICTION_HARD:-memory.available<100Mi}"