mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
The k8s YAML manifests for deploying the descheduler as a k8s job were duplicated across the "examples" and "kubernetes" directories and also in README.md. This change consolidates the YAML manifests into the "kubernetes" directory and simplifies the installation instructions for end users in README.md. Additionally a k8s CronJob has been added.
29 lines
667 B
YAML
29 lines
667 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: descheduler-policy-configmap
|
|
namespace: kube-system
|
|
data:
|
|
policy.yaml: |
|
|
apiVersion: "descheduler/v1alpha1"
|
|
kind: "DeschedulerPolicy"
|
|
strategies:
|
|
"RemoveDuplicates":
|
|
enabled: true
|
|
"RemovePodsViolatingInterPodAntiAffinity":
|
|
enabled: true
|
|
"LowNodeUtilization":
|
|
enabled: true
|
|
params:
|
|
nodeResourceUtilizationThresholds:
|
|
thresholds:
|
|
"cpu" : 20
|
|
"memory": 20
|
|
"pods": 20
|
|
targetThresholds:
|
|
"cpu" : 50
|
|
"memory": 50
|
|
"pods": 50
|
|
|