From 68a106aed015ee9719fe664d507a72966cd84d67 Mon Sep 17 00:00:00 2001 From: Christian van der Leeden Date: Sat, 3 Aug 2019 11:41:52 +0200 Subject: [PATCH] changed policy, RemoveDuplicates is not automatically turned on, so used the policy.yaml file from the examples --- examples/descheduler.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/examples/descheduler.yaml b/examples/descheduler.yaml index 008937b8b..3a27cdb46 100644 --- a/examples/descheduler.yaml +++ b/examples/descheduler.yaml @@ -43,8 +43,19 @@ data: apiVersion: "descheduler/v1alpha1" kind: "DeschedulerPolicy" strategies: - "RemovePodsViolatingNodeAffinity": + "RemoveDuplicates": + enabled: true + "RemovePodsViolatingInterPodAntiAffinity": + enabled: true + "LowNodeUtilization": enabled: true params: - nodeAffinityType: - - "requiredDuringSchedulingIgnoredDuringExecution" + nodeResourceUtilizationThresholds: + thresholds: + "cpu" : 20 + "memory": 20 + "pods": 20 + targetThresholds: + "cpu" : 50 + "memory": 50 + "pods": 50 \ No newline at end of file