...
1---
2apiVersion: v1
3kind: ConfigMap
4metadata:
5 name: descheduler-policy-configmap
6 namespace: kube-system
7data:
8 policy.yaml: |
9 apiVersion: "descheduler/v1alpha2"
10 kind: "DeschedulerPolicy"
11 profiles:
12 - name: ProfileName
13 pluginConfig:
14 - name: "DefaultEvictor"
15 - name: "RemovePodsViolatingInterPodAntiAffinity"
16 - name: "RemoveDuplicates"
17 - name: "LowNodeUtilization"
18 args:
19 thresholds:
20 "cpu" : 20
21 "memory": 20
22 "pods": 20
23 targetThresholds:
24 "cpu" : 50
25 "memory": 50
26 "pods": 50
27 plugins:
28 balance:
29 enabled:
30 - "LowNodeUtilization"
31 - "RemoveDuplicates"
32 deschedule:
33 enabled:
34 - "RemovePodsViolatingInterPodAntiAffinity"
View as plain text