Sean Malloy
423ee35846
Add New PodLifeTime Strategy
...
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
````
2020-05-07 23:10:36 -05:00
Jan Chaloupka
cbcefb5d2f
Remove options.DeschedulerServer from all strategies
2020-04-28 16:13:33 +02:00
Mike Dame
e7c42794a0
Add RemovePodsHavingTooManyRestarts strategy
2020-04-24 10:48:28 -04:00
Jan Chaloupka
077b7f6505
Drop check for MaxNoOfPodsToEvictPerNode and invoke EvictPod wrapper instead
2020-04-22 10:33:22 +02:00
Jan Chaloupka
9593ce16d9
List nodes through informer in every iteration
...
Also, refactor the code a bit so it can be tested without checking for eviction support.
2020-03-04 16:26:13 +01:00
Mike Dame
431597dd43
Break dependency on k8s.io/kubernetes
2020-02-03 10:04:53 -05:00
Mike Dame
30d05382b6
Wire --descheduler-interval flag to run descheduler on a loop
2020-01-30 17:17:55 -05:00
swatisehgal
7563b5561b
Strategy to consider taints and tolerations in Descheduler
2019-11-05 20:42:36 +00:00
Mike Dame
4b9e732c18
Switch from glog to klog
2019-10-28 20:44:02 -04:00
Jan Chaloupka
2e6f14103b
Project migrared under kubernetes-sigs, change import path prefix to sigs.k8s.io/descheduler
2019-09-19 14:09:05 +02:00
ravisantoshgudimetla
f1f8b2eaa7
Limit maximum number of pods to be evicted per node
2018-03-22 12:40:19 +01:00
Shubham Minglani
40bb490f4c
add RemovePodsViolatingNodeAffinity strategy
...
This commit adds requiredDuringSchedulingIgnoredDuringExecution
for RemovePodsViolatingNodeAffinity strategy.
Also adds unit tests and documentation.
2018-02-19 16:20:59 +05:30
ravisantoshgudimetla
ba3eac6c57
Descheduler should not run when cluster size is 1
2018-02-08 21:15:02 -05:00
Avesh Agarwal
7d079813e5
Fix to not process empty node list and also fix error reporting in other places.
...
Also fix unit test panic and if nodeLister is nil and refactor some code.
2017-11-10 16:09:33 -05:00
Avesh Agarwal
c29c9db41e
Implement node selectors to retrieve node list based on provided query.
2017-11-10 12:02:43 -05:00
ravisantoshgudimetla
97732cf62d
Pod antiaffinity strategy.
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-11-02 18:09:44 -04:00
Avesh Agarwal
b7a7fd621e
Add dry run option.
2017-09-26 16:15:44 -04:00
Avesh Agarwal
d634701250
Descheduler related modifications.
2017-09-15 14:13:27 -04:00