Kubernetes Prow Robot
78eef6c343
Merge pull request #267 from ingvagabund/drop-DeschedulerServer-from-strategies
...
Drop descheduler server from strategies
2020-04-28 08:34:06 -07:00
Jan Chaloupka
cbcefb5d2f
Remove options.DeschedulerServer from all strategies
2020-04-28 16:13:33 +02:00
Kubernetes Prow Robot
149085fb57
Merge pull request #240 from ingvagabund/turn-strategy-params-NodeResourceUtilizationThresholds-field-into-pointer
...
Turn StrategyParameters.NodeResourceUtilizationThresholds field into a pointer
2020-04-28 06:48:07 -07:00
Jan Chaloupka
991eddb691
Turn StrategyParameters.NodeResourceUtilizationThresholds field into a pointer
...
The field is intended to be omitempty when not set. Without a pointer the strategy
serialized into json string looks like:
```json
strategies:
LowNodeUtilization:
enabled: true
params:
nodeResourceUtilizationThresholds:
numberOfNodes: 1
targetThresholds:
cpu: 50
memory: 50
pods: 20
thresholds:
cpu: 50
memory: 50
pods: 20
RemoveDuplicates:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingNodeTaints:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
```
It's preferred to have the following json string instead:
```
strategies:
LowNodeUtilization:
enabled: true
params:
nodeResourceUtilizationThresholds:
numberOfNodes: 1
targetThresholds:
cpu: 50
memory: 50
pods: 20
thresholds:
cpu: 50
memory: 50
pods: 20
RemoveDuplicates:
enabled: true
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
RemovePodsViolatingNodeTaints:
enabled: true
```
2020-04-28 15:20:30 +02:00
Kubernetes Prow Robot
91de471376
Merge pull request #254 from damemi/toomanyrestarts
...
Add RemoveTooManyRestarts policy
2020-04-27 12:48:05 -07:00
Mike Dame
c2d7e22749
make gen && go mod vendor
2020-04-24 10:48:28 -04:00
Mike Dame
e7c42794a0
Add RemovePodsHavingTooManyRestarts strategy
2020-04-24 10:48:28 -04:00
Kubernetes Prow Robot
3a8dfc07ed
Merge pull request #266 from ingvagabund/pod-evictor
...
Move maximum-pods-per-nodes-evicted logic under a single invocation
2020-04-23 16:14:07 -07:00
Jan Chaloupka
077b7f6505
Drop check for MaxNoOfPodsToEvictPerNode and invoke EvictPod wrapper instead
2020-04-22 10:33:22 +02:00
Jan Chaloupka
240fa93bc5
Move maximum-pods-per-nodes-evicted logic under a single invocation
...
Each strategy implements a test for checking if a maximum number of pods per node
was already evicted. The test duplicates a code that can be put
under a single invocation. Thus, reducing the number of arguments passed
to each strategy given EvicPod call can encapsulate both the check
and the invocation of the pod eviction itself.
2020-04-22 10:32:16 +02:00
Kubernetes Prow Robot
6c7f846917
Merge pull request #265 from ingvagabund/tolerations-tains-code-cleanup
...
Tolerations taints code cleanup
2020-04-21 14:27:52 -07:00
Jan Chaloupka
6db7c3b92c
Call utils.TolerationsTolerateTaintsWithFilter directly, not through checkPodsSatisfyTolerations
2020-04-21 22:34:14 +02:00
Kubernetes Prow Robot
030267107a
Merge pull request #262 from ingvagabund/order-pods-by-priority-only-over-over-utilized-nodes
...
Order pods by priority only over over utilized nodes
2020-04-19 14:05:38 -07:00
Jan Chaloupka
1c300a9881
Drop getNoScheduleTaints and allTaintsTolerated in favor of utils.TolerationsTolerateTaintsWithFilter
2020-04-19 22:18:49 +02:00
Jan Chaloupka
0e9b33b822
allTaintsTolerated: remove for iteration through tolerations which is already implemented in utils.TolerationsTolerateTaint
2020-04-19 22:07:34 +02:00
Jan Chaloupka
36e3d1e703
Drop local implementation of toleratesTaint in favor of k8s.io/api/core/v1.Toleration.TolerateTaint
...
Functionally identical implementation of toleratesTaint is already provided in k8s.io/api
2020-04-19 21:58:41 +02:00
Jan Chaloupka
f53264b613
lownodeutilization: evict best-effort pods only
...
Unit test refactored node utilization and pod clasification
2020-04-17 11:32:34 +02:00
Jan Chaloupka
414554ae5e
lownodeutilization: make unit tests with/without priority table driven
2020-04-17 11:32:28 +02:00
Jan Chaloupka
150f945592
lownodeutilization: clasify pods of over utilized nodes only
...
Only over utilized nodes need clasification of pods into categories.
Thus, skipping categorizing of pods which saves computation time in cases
where the number of over utilized nodes makes less than 50% of all nodes
or their fraction.
2020-04-17 11:32:22 +02:00
Kubernetes Prow Robot
9a84afece1
Merge pull request #264 from ingvagabund/remove-pods-violating-node-affinity
...
readme: RemovePodsViolatingNodeAffinity: reword description of the strategy
2020-04-16 20:59:08 -07:00
Jan Chaloupka
e0c101c5ae
readme: RemovePodsViolatingNodeAffinity: reword description of the strategy
...
Compared to https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity
the strategy kinda implements requiredDuringSchedulingRequiredDuringExecution node affinity type
for kubelets. Only addition to kubelet is the strategy checks whether is at least another node
capable of respecting the node affinity rules.
When requiredDuringSchedulingRequiredDuringExecution node affinity type is implemented in kubelet,
it's likely the strategy either gets removed or re-implemented. Stressing the relation with
requiredDuringSchedulingRequiredDuringExecution will helps consumers of descheduler
to keep in mind the kubelet will eventually take over the strategy when implemented.
2020-04-15 11:54:37 +02:00
Kubernetes Prow Robot
e3a562aea0
Merge pull request #260 from CriaHu/hyq_descheduler
...
fix broken link :
2020-04-07 18:01:44 -07:00
Kubernetes Prow Robot
4966e8ee08
Merge pull request #256 from damemi/fix-podfitsanynode
...
Fix early return from PodFitsAnyNode check
2020-04-07 08:01:43 -07:00
Kubernetes Prow Robot
d3542d5892
Merge pull request #258 from damemi/verify-deps
...
Add verify-vendor scripts to CI
2020-04-07 07:53:43 -07:00
Mike Dame
62d04b0fc7
go mod tidy && go mod vendor
2020-04-07 10:34:47 -04:00
Mike Dame
6ecbc85448
Add hack/{update,verify}-vendor.sh scripts
2020-04-07 10:34:47 -04:00
Cria Hu
b9b1eae6fb
fix broken link :
...
https://git.k8s.io/community/contributors/guide/contributor-cheatsheet.md
2020-04-06 09:28:09 +08:00
Mike Dame
e95e42930d
Remove early return false from PodFitsAnyNode
2020-04-02 11:53:29 -04:00
Kubernetes Prow Robot
3cabb69014
Merge pull request #255 from KohlsTechnology/go-1.13.9
...
Update to Go 1.13.9
2020-03-31 20:47:27 -07:00
Sean Malloy
ad8f90f177
Update to Go 1.13.9
...
Kubernetes releases 1.16 through 1.19 have been updated
to Go 1.13.9, so it's time to update the descheduler too.
2020-03-31 22:30:52 -05:00
Kubernetes Prow Robot
8a62cf1699
Merge pull request #246 from KohlsTechnology/go-1.13.8
...
Update to Go 1.13.8
2020-03-09 11:17:36 -07:00
Sean Malloy
a6b54dae99
Update to Go 1.13.8
...
Kubernetes releases 1.15 through 1.19 have been updated
to Go 1.13.8, so it's time to update the descheduler too.
https://github.com/kubernetes/release/issues/1134
2020-03-08 23:12:53 -05:00
Kubernetes Prow Robot
112684bcb9
Merge pull request #181 from jw-s/feature/respect-tolerations
...
Respect Node taints with tolerations (if exist)
2020-03-04 10:45:48 -08:00
Kubernetes Prow Robot
682e07c3cd
Merge pull request #249 from ingvagabund/list-node-through-informer-in-every-iteration
...
List nodes through informer in every iteration
2020-03-04 10:43:48 -08: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
Kubernetes Prow Robot
2545c8b031
Merge pull request #244 from KohlsTechnology/docs-revamp
...
Documentation Refresh
2020-03-04 07:23:47 -08:00
Sean Malloy
c9793e7029
Clean README based on feedback from review
2020-03-03 22:07:20 -06:00
Joel Whittaker-Smith
4757132452
check for taints on low nodes and honor them
2020-03-02 14:43:11 +01:00
Sean Malloy
561b3b67b3
Clean README based on feedback from review
2020-02-28 22:38:28 -06:00
Sean Malloy
566f33e6ad
Initial User and Contributor Guide Draft
2020-02-26 01:29:57 -06:00
Sean Malloy
83a75bac80
Create Structure and Links For User and Contributor Guides
2020-02-26 01:30:08 -06:00
Sean Malloy
d8772f5685
Clean up README
...
* Fixed small typos
* Update compatability matrix
2020-02-26 01:29:57 -06:00
Kubernetes Prow Robot
df510187d6
Merge pull request #233 from KohlsTechnology/update-release-docs
...
Add notes section to release documentation
2020-02-21 11:12:12 -08:00
Kubernetes Prow Robot
137b9b72e7
Merge pull request #242 from KohlsTechnology/fix-gcr-registry
...
Fix GCR Image Location In Job and CronJob YAML
2020-02-20 09:41:01 -08:00
Sean Malloy
09b4979673
Fix GCR Image Location In Job and CronJob YAML
...
The correct location for the official descheduler container image is
us.gcr.io/k8s-artifacts-prod/descheduler/descheduler:TAG_NAME.
2020-02-20 00:30:16 -06:00
Kubernetes Prow Robot
eff8185d7c
Merge pull request #239 from aveshagarwal/master-fix-gen
...
Fix email address in docker files.
2020-02-12 07:04:52 -08:00
Avesh Agarwal
83ee94dd08
Fix email address in docker files.
2020-02-12 09:31:24 -05:00
Sean Malloy
aae52ac2ee
Document gcloud command used to get container image details
...
The "gcloud container images describe" command is used to get the SHA256
hash of an image in the staging registry. The SHA256 hash is required
for the image promotion process.
https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter
2020-02-11 22:46:27 -06:00
Sean Malloy
a7c4295c58
Add notes section to release documentation
...
Add a link to the test grid dashboard for automated container image builds,
and documents useful gcloud commands for woking with the staging registry.
This documentation is useful for project maintainers that are creating
releases and publishing container images. The chance of remembering
these commands and links is slim to none. Therefore documenting this
information will be very useful.
2020-02-11 22:41:35 -06:00
Kubernetes Prow Robot
7a6e095451
Merge pull request #222 from KohlsTechnology/travis-build-matrix
...
Run e2e Tests Against Multiple k8s Versions
v0.10.0
2020-02-11 18:30:07 -08:00