lixiang
03518badb8
Strategies: Add labelSelector to all strategies except LowNodeUtilization, RemoveDuplicates and RemovePodsViolatingTopologySpreadConstraint.
2021-03-04 21:30:50 +08:00
lixiang
854afa7c73
PodsListing: Add WithLabelSelector option.
2021-03-01 11:13:44 +08:00
lixiang
2517268b1f
API: Add a new parameter labelSelector to StrategyParameters.
2021-02-26 15:49:00 +08:00
lixiang
e014fda58e
Log and README optimization for LowNodeUtilization
2021-02-24 09:17:07 +08:00
Mike Dame
01a87b6143
Move 'total pods evicted' log message to main loop
2021-02-19 10:37:43 -05:00
Jan Chaloupka
500aaea4dd
LowNodeUtilization: unit test resourceUsagePercentages to validate percentages are computed correctly
2021-02-11 16:04:37 +01:00
范成城
16fa21a4a6
change resourceUsagePercentage func
2021-01-31 20:46:46 +08:00
Kubernetes Prow Robot
241f1325c9
Merge pull request #481 from damemi/ignore-pvc-pods
...
Add option to ignore pods with PVCs from eviction
2021-01-26 22:41:40 -08:00
Mike Dame
c1a63a557a
Add option to ignore pods with PVCs from eviction
2021-01-26 08:47:54 -05:00
lixiang
8ba9cb1df7
Add a parameter to include soft topology spread constraints
2021-01-21 11:33:16 +08:00
Mike Dame
241f47d947
Fix TopologySpread bug that evicts non-evictable pods
2021-01-12 15:25:55 -05:00
Mike Dame
635a40f305
Add Logging field to v1alpha1 componentconfig
2021-01-11 11:21:32 -05:00
wu.chaozong
c481877c03
refactor: update node_test file
2020-12-15 21:15:33 +08:00
wu.chaozong
674f14da78
refactor: remove unused code
2020-12-13 00:09:07 +08:00
Kubernetes Prow Robot
c86d1c7eb2
Merge pull request #463 from ingvagabund/duplicates-uniformly
...
RemoveDuplicatePods: evict uniformly
2020-12-10 07:14:13 -08:00
Jan Chaloupka
f67c265533
RemoveDuplicatePods: evict uniformly
2020-12-10 15:33:04 +01:00
Mike Dame
0273fd7597
Skip topology calculations if domains are already balanced
2020-12-09 11:29:59 -05:00
Mike Dame
499beb2fd7
Fix broken namespace logic in TopologySpreadConstraint
2020-12-04 10:49:58 -05:00
Mike Dame
2b5ec01381
Add more topology spread logs
2020-12-01 17:02:46 -05:00
Jan Chaloupka
cd6f2cd4cb
LowNodeUtilization: express usagePercentage multiplied by 100
...
Entry params are in interval <0; 100>. Have logs respect that as well.
2020-11-24 14:48:48 +01:00
Jan Chaloupka
652ee87bf5
LowNodeUtilization: show node usage in percentage as well
2020-11-18 14:50:53 +01:00
Kubernetes Prow Robot
4839d5f369
Merge pull request #413 from damemi/podtopologyspread
...
Add PodTopologySpread strategy
2020-11-13 10:41:05 -08:00
Kubernetes Prow Robot
b30bd40860
Merge pull request #428 from damemi/component-helper-nodeselector
...
Start using helpers from k8s.io/component-helpers
2020-11-02 04:52:54 -08:00
Mayank Kumar
4108362158
Add RemovePodsViolatingTopologySpreadConstraint strategy
...
This adds a strategy to balance pod topology domains based on the scheduler's
PodTopologySpread constraints. It attempts to find the minimum number of pods
that should be sent for eviction by comparing the largest domains in a topology
with the smallest domains in that topology.
2020-10-30 16:36:33 -04:00
Mike Dame
3c54378749
Use NodeSelectorRequirementsAsSelector from k8s.io/component-helpers
2020-10-30 09:41:49 -04:00
Mateusz Gozdek
cc6bb633ba
pkg/descheduler/pod: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:55 +02:00
Mateusz Gozdek
31cf70c34c
pkg/descheduler/strategies: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:24 +02:00
Kubernetes Prow Robot
b33928ac91
Merge pull request #412 from farah/logging-format
...
Add logging-format flag
2020-10-12 10:58:48 -07:00
Ali Farah
3ac0c408de
Add --logging-format flag
...
Add k8s.io/component-base/config package
2020-10-12 22:27:39 +11:00
Sean Malloy
4bb0ceeed5
Update Event Logging to Use Structured Logging
2020-10-01 00:50:37 -05:00
Sean Malloy
6237ba5a43
Convert Last Log Message To Structured Logging
...
The k8s.io/klog/v2 package does not currently support structured logging
for warning level log messages. Therefore update the one call in the
code base using klog.Warningf to instead use klog.InfoS.
2020-09-25 22:58:28 -05:00
Kubernetes Prow Robot
5d65a9ad68
Merge pull request #409 from ingvagabund/flip-some-klog-info-to-error
...
Change klog info messages after a strategy is exited into error messages
2020-09-25 20:34:47 -07:00
Kubernetes Prow Robot
28f3f867c3
Merge pull request #407 from ingvagabund/structured-klog
...
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-24 04:22:05 -07:00
Jan Chaloupka
7afa54519f
Change klog info messages after a strategy is exited into error messages
2020-09-24 11:07:20 +02:00
Jan Chaloupka
4798559545
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-21 09:08:11 +02:00
Mike Dame
8b34d6eb94
Add Namespace filtering to RemoveDuplicates strategy
2020-09-18 12:17:47 -04:00
Kubernetes Prow Robot
c9cfeb35c2
Merge pull request #384 from ingvagabund/refactor-low-node-utilization
...
Refactor low node utilization
2020-09-13 19:04:58 -07:00
Kubernetes Prow Robot
fda63a816f
Merge pull request #397 from farah/farah/add-structured-logging
...
Convert logs to use structured logs
2020-09-13 18:46:57 -07:00
Ali Farah
6329b6c27b
Convert logs to use structured logs
2020-09-12 14:46:16 +10:00
Jan Chaloupka
9b4f781c5c
Be verbose about unschedulable nodes which are not considered as underutilized
2020-09-11 12:57:24 +02:00
Jan Chaloupka
63039fcfd6
Compute utilization absolutely, not relatively
2020-09-11 12:57:22 +02:00
Kubernetes Prow Robot
d25f3757d6
Merge pull request #393 from lixiang233/Ft_custom_pod_phase_PodLifeTime
...
PodLifeTime: allow custom podStatusPhases
2020-09-11 03:46:14 -07:00
lixiang
1303fe6eb9
PodLifeTime: allow custom podStatusPhases
2020-09-11 09:56:45 +08:00
Kubernetes Prow Robot
1682cc9462
Merge pull request #394 from farah/farah/add-structured-logging
...
Convert logs to use structured logging
2020-09-09 10:15:08 -07:00
Jan Chaloupka
dc41e6a41c
Remove createNodePodsMap
2020-09-09 16:29:11 +02:00
Ali Farah
e37c27313e
Convert logs to use structured logging
2020-09-10 00:22:24 +10:00
Mike Dame
e5d9756ebe
Move IsEvictable check in PodAntiAffinity
...
While non-evictable pods should never be evicted, they should still be
considered when calculating PodAntiAffinity violations. For example, you
may have an evictable pod that should not be running next to a system-critical
static pod. We currently filter IsEvictable before checking for Affinity violations,
so this case would not be caught.
2020-09-09 09:46:50 -04:00
Kubernetes Prow Robot
08b2dffa42
Merge pull request #376 from farah/farah/add-structured-logging
...
Change klog to use structured logging
2020-09-02 09:49:06 -07:00
Sean Malloy
1fb3445692
Fix golangci-lint Failures For 1.30.0 Upgrade
2020-08-31 14:03:43 -05:00
Jan Chaloupka
d27f64480b
LowNodeUtilization: use clientset in testing, drop all custom reactors
2020-08-31 20:38:01 +02:00