Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit b120ce9

Browse files
committed
Set hard memory eviction thresholds for GCE clusters.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
1 parent b22a913 commit b120ce9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cluster/gce/config-default.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ OPENCONTRAIL_PUBLIC_SUBNET="${OPENCONTRAIL_PUBLIC_SUBNET:-10.1.0.0/16}"
138138
HAIRPIN_MODE="${HAIRPIN_MODE:-promiscuous-bridge}" # promiscuous-bridge, hairpin-veth, none
139139
# Optional: if set to true, kube-up will configure the cluster to run e2e tests.
140140
E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
141+
142+
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
143+
EVICTION_HARD="${EVICTION_HARD:-memory.available<100Mi}"

cluster/gce/config-test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
170170
# Optional: if set to true, a image puller is deployed. Only for use in e2e clusters.
171171
# TODO: Pipe this through GKE e2e clusters once we know it helps.
172172
PREPULL_E2E_IMAGES="${PREPULL_E2E_IMAGES:-true}"
173+
174+
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
175+
EVICTION_HARD="${EVICTION_HARD:-memory.available<100Mi}"

0 commit comments

Comments
 (0)