Skip to content

Instantly share code, notes, and snippets.

@abhioncbr
Created March 16, 2020 00:06
Show Gist options
  • Save abhioncbr/1f34b63d1f0ebeed81a587531f15fb3e to your computer and use it in GitHub Desktop.
Save abhioncbr/1f34b63d1f0ebeed81a587531f15fb3e to your computer and use it in GitHub Desktop.
---
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment