ksimon1
fb1b5fc690
added unit test
...
updated e2e test
Signed-off-by: ksimon1 <ksimon@redhat.com >
2019-10-04 11:08:33 +02:00
ksimon1
dc7f9efc19
Descheduler can evict all types of pods with special annotation
...
When pod has this annotation, descheduler will always try to evict this pod.
User can control which pods (only pods with this annotation) will be evicted.
Signed-off-by: ksimon1 <ksimon@redhat.com >
2019-10-04 11:07:40 +02:00
Jan Chaloupka
e35eb4a0b5
Run ./hack/update-gofmt
2019-09-19 14:29:00 +02: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
Dane De Forest
cd4d09726c
Fix small typo in output for thresholds for low utilization
2019-08-28 11:25:55 -07:00
Sebastiaan Tammer
20c610c65a
Improved logic for duplicates testing
2019-06-11 20:35:55 +02:00
Reeta Singh
dee89a6cc1
Refactoring test by make it table driven and adding golangci-lint to the CI pipeline
2019-06-03 20:40:02 -07:00
Sebastiaan Tammer
023a2f2a47
Replaced UID with Namespace for duplicate check, added tests (+ cleanup)
2019-05-25 11:18:11 +02:00
Sebastiaan Tammer
d1c6f3f709
Added ownerRef.UID for evaluating duplicate Pods
2019-05-24 18:51:33 +02:00
Adi Yadav
e6e200b93c
Added auto-generated changes.
2019-04-11 23:24:56 -04:00
Adi Yadav
5d843d1f08
Added manual changes.
2019-04-11 23:24:20 -04:00
ravisantoshgudimetla
a079fd2757
Remove the unnecessary print statements
2018-08-22 11:27:40 -04:00
ravisantoshgudimetla
d0305dac3f
Low node utilization to respect priority while evicting pods
2018-08-21 14:14:26 -04:00
Hugues Alary
450a5c290b
Allow other auth providers (GCP, OIDC, Azure, OpenStack)
2018-05-22 19:13:47 -07:00
Avesh Agarwal
57a28e9a8f
Fix dryRun issue and avoid unnecessary log
...
msg when node affinity strategy is disabled.
2018-04-23 17:13:19 -04:00
Avesh Agarwal
34fb602101
Fix max pods to evict per node.
2018-04-12 15:28:24 -04:00
Jan Chaloupka
f7d0acb731
Regen
2018-03-22 12:40:23 +01:00
ravisantoshgudimetla
f1f8b2eaa7
Limit maximum number of pods to be evicted per node
2018-03-22 12:40:19 +01:00
Shubham Minglani
bb25192163
add generated files
2018-02-19 16:21:04 +05:30
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
44752e5e83
Update code and hack dir for kube 1.9 rebase.
2018-01-09 12:41:01 -05:00
Avesh Agarwal
7123f30783
Update auto-generated code.
2018-01-09 11:04:26 -05:00
ravisantoshgudimetla
bf29a6073f
Owner ref switch
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2018-01-05 00:22:12 +05:30
ravisantoshgudimetla
6f873d5e69
Make GPU requested pods not evictable by descheduler
2017-12-05 03:49:47 -05:00
Avesh Agarwal
445ae92caa
Merge pull request #59 from aveshagarwal/master-fix-errors
...
Update logging and a few fixes.
2017-12-01 13:19:36 -05:00
Avesh Agarwal
8f3c0cf4b8
Merge pull request #58 from aveshagarwal/master-fix-node-lister
...
Fix node lister by allowing its reflector to have enough time so that listing works.
2017-12-01 13:02:17 -05:00
Avesh Agarwal
2a280f9a20
Update logging and a few fixes.
2017-12-01 13:02:05 -05:00
Avesh Agarwal
e0a9dfcb76
Fix field selector to only list non-terminated pods.
2017-12-01 12:50:39 -05:00
Avesh Agarwal
5db49f2ce1
Fix node lister by allowing its reflector to have enough time so that listing works.
...
Currently time duration is chosen randomly.
2017-11-30 12:28:33 -05:00
ravisantoshgudimetla
a63f815116
Small refactor to accomodate descheduling only evictable pods
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-11-29 15:34:28 -05:00
ravisantoshgudimetla
6dbc8a1fcc
Changes to fix low node utilization strategy
2017-11-27 18:40:53 -05:00
RaviSantosh Gudimetla
d2bd16a12d
Merge pull request #41 from containscafeine/error-out-on-unsupported-resource-names
...
Validate resource names to pass to thresholds
2017-11-27 12:35:30 -05:00
Shubham Minglani
a490726245
Validate resource names to pass to thresholds
...
This commit adds checks to only allow valid resource names for the
thresholds field, which are "cpu", "memory", and "pods" right now.
For the other valid or invalid resource names, descheduler will now
throw an error.
Also, tests have been added to test the added behavior.
fix #40
2017-11-27 19:54:53 +05:30
Shubham Minglani
d54b73a6ba
Add log messages for target, underutilized nodes
...
This commit adds log messages to be printed whenever a node is
identified as a target node from which the pods can be evicted or
as an underutilized node to which the evicted pods can be
scheduled, if at all.
This should help with debugging as well as with letting the user
know the identified nodes.
2017-11-25 19:49:05 +05:30
Avesh Agarwal
1473e1d024
Remove unused test code.
2017-11-10 16:18:07 -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
acfd4f8680
Update auto-generated files.
2017-11-10 12:02:43 -05:00
Avesh Agarwal
c29c9db41e
Implement node selectors to retrieve node list based on provided query.
2017-11-10 12:02:43 -05:00
Avesh Agarwal
5d3f987dde
Merge pull request #20 from ravisantoshgudimetla/pod-anti-affinity-strategy
...
Pod antiaffinity strategy
2017-11-08 10:19:16 -05:00
ravisantoshgudimetla
97732cf62d
Pod antiaffinity strategy.
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-11-02 18:09:44 -04:00
Avesh Agarwal
d395332793
Update glide.yaml for rebasing kuberenetes to 1.7.6. Also fix
...
unit tests.
2017-10-16 14:42:17 -04:00
Avesh Agarwal
40a19396d0
Fix glog messages.
2017-10-11 11:49:59 -04:00
ravisantoshgudimetla
9e536da99e
Commit for gofmt
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
2017-10-05 16:03:28 -04:00
ravisantoshgudimetla
32c8898ec7
Conversion to glog
...
Signed-off-by: ravisantoshgudimetla <ravisantoshgudimetla@gmail.com >
Conversion to glog
2017-10-04 12:17:44 -04:00
Avesh Agarwal
1977b92b20
Update eviction strategy of pods in low node utilization strategy to
...
consider cpu and memory too in addition to pods.
2017-10-02 17:39:51 -04:00
Avesh Agarwal
01545886b4
Update low node utilization stratgey to evict busrtable pods before
...
guaranteed pods.
2017-10-02 10:58:07 -04:00
Avesh Agarwal
179646a332
Fix computation of number of evicted pods.
2017-09-27 18:32:19 -04:00
Avesh Agarwal
2d6e990f1c
Update auto generated code.
2017-09-26 16:15:44 -04:00
Avesh Agarwal
b7a7fd621e
Add dry run option.
2017-09-26 16:15:44 -04:00