mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
The new PodLifeTime descheduler strategy can be used to evict pods that
were created more than the configured number of seconds ago.
In the below example pods created more than 24 hours ago will be evicted.
````
apiVersion: "descheduler/v1alpha1"
kind: "DeschedulerPolicy"
strategies:
"PodLifeTime":
enabled: true
params:
maxPodLifeTimeSeconds: 86400
````
21 lines
483 B
YAML
21 lines
483 B
YAML
---
|
|
apiVersion: "descheduler/v1alpha1"
|
|
kind: "DeschedulerPolicy"
|
|
strategies:
|
|
"LowNodeUtilization":
|
|
enabled: false
|
|
"RemoveDuplicates":
|
|
enabled: false
|
|
"RemovePodsViolatingInterPodAntiAffinity":
|
|
enabled: false
|
|
"RemovePodsViolatingNodeAffinity":
|
|
enabled: false
|
|
"RemovePodsViolatingNodeTaints":
|
|
enabled: false
|
|
"RemovePodsHavingTooManyRestarts":
|
|
enabled: false
|
|
"PodLifeTime":
|
|
enabled: true
|
|
params:
|
|
maxPodLifeTimeSeconds: 604800 # 7 days
|