1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +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

@@ -48,6 +48,7 @@ type DeschedulerStrategy struct {
type StrategyParameters struct {
NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds
NodeAffinityType []string
PodsHavingTooManyRestarts PodsHavingTooManyRestarts
}
type Percentage float64
@@ -58,3 +59,8 @@ type NodeResourceUtilizationThresholds struct {
TargetThresholds ResourceThresholds
NumberOfNodes int
}
type PodsHavingTooManyRestarts struct {
PodRestartThreshold int32
IncludingInitContainers bool
}