mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	added eviction minimum reclaim flags to test flags, and changed gce default config for eviction-hard to match what tests are using
This commit is contained in:
		@@ -165,7 +165,7 @@ HAIRPIN_MODE="${HAIRPIN_MODE:-promiscuous-bridge}" # promiscuous-bridge, hairpin
 | 
			
		||||
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,nodefs.available<10%,nodefs.inodesFree<5%}"
 | 
			
		||||
EVICTION_HARD="${EVICTION_HARD:-memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%}"
 | 
			
		||||
 | 
			
		||||
# Optional: custom scheduling algorithm
 | 
			
		||||
SCHEDULING_ALGORITHM_PROVIDER="${SCHEDULING_ALGORITHM_PROVIDER:-}"
 | 
			
		||||
 
 | 
			
		||||
@@ -202,7 +202,7 @@ E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
 | 
			
		||||
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,nodefs.available<10%,nodefs.inodesFree<5%}"
 | 
			
		||||
EVICTION_HARD="${EVICTION_HARD:-memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%}"
 | 
			
		||||
 | 
			
		||||
# Optional: custom scheduling algorithm
 | 
			
		||||
SCHEDULING_ALGORITHM_PROVIDER="${SCHEDULING_ALGORITHM_PROVIDER:-}"
 | 
			
		||||
 
 | 
			
		||||
@@ -123,6 +123,7 @@ func (e *E2EServices) startKubelet() (*server, error) {
 | 
			
		||||
		// by kubelet-flags.
 | 
			
		||||
		"--feature-gates", framework.TestContext.FeatureGates,
 | 
			
		||||
		"--eviction-hard", "memory.available<250Mi,nodefs.available<10%,nodefs.inodesFree<5%", // The hard eviction thresholds.
 | 
			
		||||
		"--eviction-minimum-reclaim", "nodefs.available=5%,nodefs.inodesFree=5%", // The minimum reclaimed resources after eviction.
 | 
			
		||||
		"--v", LOG_VERBOSITY_LEVEL, "--logtostderr",
 | 
			
		||||
	)
 | 
			
		||||
	// Enable kubenet by default.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user