1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-28 14:41:10 +01:00

Move CrashLoopBackOff container state from PodLifeTime to TooManyRestarts plugin

This commit is contained in:
Amir Alavi
2023-06-07 21:30:13 -04:00
parent 9aad51f328
commit 0bdbf51eb2
10 changed files with 201 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: "descheduler/v1alpha2"
kind: "DeschedulerPolicy"
profiles:
- name: ProfileName
pluginConfig:
- name: "RemovePodsHavingTooManyRestarts"
args:
podRestartThreshold: 100
includingInitContainers: true
states:
- CrashLoopBackOff
plugins:
deschedule:
enabled:
- "RemovePodsHavingTooManyRestarts"