Kubernetes Prow Robot
104786844a
Merge pull request #345 from ingvagabund/release-1.18
...
Move kind setup to e2e script
2020-07-14 07:39:21 -07:00
Jan Chaloupka
b58fcb4d77
Makefile: add missing verify targets
2020-07-14 16:06:02 +02:00
Jan Chaloupka
e40fab430c
Move kind setup to e2e script
...
This moves the kind setup (previously used by Travis) to the e2e runner script
to accomodate the switch to Prow. This provides a KIND_E2E env var to specify
whether to run the tests in kind, or (by default) to run locally).
2020-07-14 15:53:51 +02:00
Kubernetes Prow Robot
aaaa1c5ba6
Merge pull request #292 from KohlsTechnology/cherry-pick-install-manifests
...
Update Install Manifests For Release v0.18.0
2020-05-27 10:42:11 -07:00
Kubernetes Prow Robot
e7d932ff4e
Merge pull request #295 from KohlsTechnology/cherry-pick-compatibility-matrix
...
Cherry Pick: Update Compatibility Matrix in README
2020-05-26 09:55:12 -07:00
Sean Malloy
e9beffd28d
Update Compatibility Matrix in README
...
The matrix has been updated with the soon the be released v0.18
details. Also, clarified the descheduler and k8s version compatibility
requirements and recommendations.
2020-05-26 09:03:41 -05:00
Sean Malloy
6bdfbb5b5f
Update Install Manifests For Release v0.18.0
2020-05-22 11:50:03 -05:00
Kubernetes Prow Robot
d85ce22975
Merge pull request #289 from KohlsTechnology/update-release-docs
...
Update Release Guide
v0.18.0
2020-05-20 11:46:19 -07:00
Kubernetes Prow Robot
a9091a1e37
Merge pull request #287 from ingvagabund/evict-pod-mention-dry-run-if-set
...
Mention pod eviction is in dry mode when set
2020-05-20 11:44:19 -07:00
Sean Malloy
d3b0ac8e06
Update Release Guide
...
Starting with descheduler v0.18 a release branch will be created for
each descheduler minor release. The release guide has been updated with
the steps to create release branches.
2020-05-20 11:10:42 -05:00
Jan Chaloupka
eacbae72fd
Mention pod eviction is in dry mode when set
...
Indicate whether a pod is only virtually evicted so there's no confusion
with the real eviction.
2020-05-20 10:40:58 +02:00
Kubernetes Prow Robot
34550d4b7c
Merge pull request #275 from damemi/image-in-duplicates
...
Consider pod image in duplicates strategy
2020-05-15 06:51:38 -07:00
Mike Dame
c6ff87dbd6
Consider pod image in duplicates strategy
...
This increases the specificity of the RemoveDuplicates strategy by
removing pods which not only have the same owner, but who also
must have the same list of container images. This also adds a
parameter, `ExcludeOwnerKinds` to the RemoveDuplicates strategy
which accepts a list of Kinds. If a pod has any of these Kinds as
an owner, that pod is not considered for eviction.
2020-05-15 09:37:09 -04:00
Kubernetes Prow Robot
04efe65f90
Merge pull request #279 from KohlsTechnology/eviction-logs
...
Add Additional Details To Pod Eviction Log Messages
2020-05-14 07:20:22 -07:00
Sean Malloy
55afde6251
Remove line break in log message from PodLifeTime strategy
2020-05-14 00:36:52 -05:00
Sean Malloy
7039b6c8aa
Refactor function EvictPod to only return an error
...
The EvictPod function previously returned a bool and an error. The
function now only returns an error. Callers can check for failure by
testing if the returned error is not nil. This aligns the EvictPod
function with idiomatic Go best practices.
Also, the function name has been changed from EvictPod to evictPod
because it is not used outside the evictions package.
2020-05-14 00:11:54 -05:00
Sean Malloy
cff984261e
Log an error when EvictPod method returns a non-nil error
...
End users should be able to see the detailed error from the EvictPod
method when it fails. Updates all strategies to log the error. The
PodLifeTime strategy already logs this error.
2020-05-13 23:36:32 -05:00
Sean Malloy
4819ab9c69
Add namespace to pod eviction log messages
...
In multi-tenant environments it is useful to know which namespace a pod
was evicted from. Therefore log the namespace when evicting pods.
Also, do not log a nil error when successfully evicting pods.
2020-05-13 23:28:25 -05:00
Kubernetes Prow Robot
25336da708
Merge pull request #281 from KohlsTechnology/update-travis-ci
...
Update Travis CI build matrix with latest k8s point releases
2020-05-13 08:20:26 -07:00
Sean Malloy
4941f6a16b
Update Travis CI build matrix with latest k8s point releases
2020-05-12 22:38:23 -05:00
Kubernetes Prow Robot
d7e93058d4
Merge pull request #280 from damemi/k8s-1.18
...
Update to k8s 1.18.2 dependencies
2020-05-12 13:40:21 -07:00
Mike Dame
c20a595370
Update travis.yml with new k8s version and updated kind version
2020-05-12 15:01:25 -04:00
Mike Dame
eec1104d6e
React to 1.18 by adding contexts to client calls
2020-05-12 15:01:25 -04:00
Mike Dame
741b35edf5
Update to k8s 1.18.2 dependencies
2020-05-12 14:07:31 -04:00
Kubernetes Prow Robot
c01cfcf3b6
Merge pull request #274 from KohlsTechnology/pod-lifetime-strategy
...
Add New PodLifeTime Strategy
2020-05-08 07:29:42 -07:00
Sean Malloy
643cd472ef
Add initial production use cases section to user guide
2020-05-08 09:02:24 -05:00
Sean Malloy
668d727fc2
Add VS Code File To .gitignore
2020-05-07 23:10:48 -05:00
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
Kubernetes Prow Robot
31c7855212
Merge pull request #278 from lixiang233/fix_readme
...
Fix readme
2020-05-07 12:19:43 -07:00
Kubernetes Prow Robot
211f3942b6
Merge pull request #276 from damemi/toomanyrestarts-pointer
...
Switch PodsHavingTooManyRestarts params to pointer
2020-05-07 12:17:42 -07:00
Kubernetes Prow Robot
beae282735
Merge pull request #277 from damemi/damemi-approvers
...
Add damemi to approvers
2020-05-07 12:15:42 -07:00
lixiang
635348efb9
Fix readme
2020-05-07 11:47:32 +08:00
Mike Dame
fa335c782f
Switch PodsHavingTooManyRestarts params to pointer
2020-05-06 13:29:05 -04:00
Mike Dame
b019a58525
Add damemi to approvers
2020-05-06 11:00:58 -04:00
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