1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

Add RemovePodsHavingTooManyRestarts strategy

This commit is contained in:
Mike Dame
2020-04-01 16:10:56 -04:00
parent 3a8dfc07ed
commit e7c42794a0
11 changed files with 377 additions and 0 deletions

View File

@@ -182,6 +182,22 @@ strategies:
enabled: true
````
### RemovePodsHavingTooManyRestarts
This strategy makes sure that pods having too many restarts are removed from nodes. For example a pod with EBS/PD that can't get the volume/disk attached to the instance, then the pod should be re-scheduled to other nodes.
```
apiVersion: "descheduler/v1alpha1"
kind: "DeschedulerPolicy"
strategies:
"RemovePodsHavingTooManyRestarts":
enabled: true
params:
podsHavingTooManyRestarts:
podRestartThreshold: 100
includingInitContainers: true
```
## Pod Evictions
When the descheduler decides to evict pods from a node, it employs the following general mechanism: