update descheduler image and config

This commit is contained in:
viktorbarzin 2021-05-12 00:25:42 +01:00
parent 3ba28a4594
commit f3c348eb9d

View file

@ -84,19 +84,21 @@ resource "kubernetes_config_map" "policy" {
params:
nodeResourceUtilizationThresholds:
thresholds:
"cpu" : 20
"memory": 20
"cpu" : 50
"memory": 30
"pods": 20
targetThresholds:
"cpu" : 50
"memory": 50
"cpu" : 70
"memory": 30
"pods": 50
"PodLifeTime":
enabled: true
params:
maxPodLifeTimeSeconds: 86400
podLifeTime:
maxPodLifeTimeSeconds: 604800
namespaces:
exclude:
- "bind"
- "monitoring"
- "kube-system"
EOF
@ -124,7 +126,7 @@ resource "kubernetes_cron_job" "descheduler" {
priority_class_name = "system-cluster-critical"
container {
name = "descheduler"
image = "us.gcr.io/k8s-artifacts-prod/descheduler/descheduler:v0.18.0"
image = "k8s.gcr.io/descheduler/descheduler:v0.20.0"
volume_mount {
mount_path = "/policy-dir"
name = "policy-volume"