Patrick Ohly
bde9b64cdf
DRA: remove "source" indirection from v1 Pod API
...
This makes the API nicer:
resourceClaims:
- name: with-template
resourceClaimTemplateName: test-inline-claim-template
- name: with-claim
resourceClaimName: test-shared-claim
Previously, this was:
resourceClaims:
- name: with-template
source:
resourceClaimTemplateName: test-inline-claim-template
- name: with-claim
source:
resourceClaimName: test-shared-claim
A more long-term benefit is that other, future alternatives
might not make sense under the "source" umbrella.
This is a breaking change. It's justified because DRA is still
alpha and will have several other API breaks in 1.31.
2024-06-27 17:53:24 +02:00
Kubernetes Prow Robot
9c8c61aee4
Merge pull request #122234 from AxeZhan/podUpdateEvent
...
[Scheduler]Put pod into the correct queue during podUpdate
2024-06-12 12:28:17 -07:00
AxeZhan
d66f8f9413
schedulingQueue update pod by queueHint
2024-06-12 21:26:09 +08:00
Eric Lin
44c08fdbd5
Add /readyz for kube-scheduler
...
/readyz contains `sched-handler-sync`, `leaderElection` (when election is
enabled) and `shutdown` checks
2024-05-27 19:11:24 +00:00
Eric Lin
708180be69
Add /livez to kube-scheduler
...
Health endpoint `/livez` only contains ping check.
2024-05-27 19:11:24 +00:00
Kubernetes Prow Robot
68091805a5
Merge pull request #124785 from kerthcet/cleanup/deprecate-wait-pull
...
Avoid to use deprecated wait.Poll in scheduler tests
2024-05-22 01:17:30 -07:00
AxeZhan
b5f25c41ce
add an integration test when nodeAffinity specifies a non-existent node.
2024-05-18 05:00:59 +08:00
Kensei Nakada
2ea7d8f523
graduate MatchLabelKeysInPodAffinity to Beta
2024-05-11 10:40:28 +00:00
kerthcet
f5b6f79410
Avoid to use deprecated wait.Poll in scheduler tests
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2024-05-10 14:17:09 +08:00
Kubernetes Prow Robot
db82fd1604
Merge pull request #124618 from gabesaba/gated_performance
...
Filter gated pods before calling isPodWorthRequeueing
2024-05-09 11:33:23 -07:00
Gabe
558945958e
refactor integ test
2024-05-09 14:02:37 +00:00
joey
a56cc6b100
add integration test for pod with pvc has node-affinity to non-existent/existent nodes
...
Signed-off-by: joey <zchengjoey@gmail.com >
2024-05-03 19:45:31 +08:00
Gabe
9a8ec13505
make linter happy
2024-04-30 12:06:26 +00:00
Gabe
4e99ada05f
Filter gated pods before calling isPodWorthRequeueing
2024-04-29 16:54:40 +00:00
Wei Huang
d3821508f1
test to catch illegal nodeNames returned by PreFilterResult
2024-04-26 15:45:46 -07:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
nayihz
1b3d10aafa
fix: node added with matched pod anti-affinity topologyKey
...
Co-authored-by: Kensei Nakada <handbomusic@gmail.com >
2024-04-12 11:08:44 +08:00
Kensei Nakada
2b56de43e5
register Node/UpdateNodeTaint event to plugins which has Node/Add only, doesn't have Node/UpdateNodeTaint
2024-03-16 14:13:06 +00:00
Kubernetes Prow Robot
6929a11f69
Merge pull request #123481 from sanposhiho/mindomain-stable
...
graduate MinDomainsInPodTopologySpread to stable
2024-03-04 17:18:53 -08:00
Kubernetes Prow Robot
e4a14fe0f5
Merge pull request #123575 from Huang-Wei/pod-scheduling-readiness-stable
...
Graduate PodSchedulingReadiness to stable
2024-03-03 22:29:38 -08:00
Wei Huang
01db4ae9e7
Graduate PodSchedulingReadiness to stable
2024-02-28 23:18:44 -08:00
Kensei Nakada
58a826a59a
graduate MinDomainsInPodTopologySpread to stable
2024-02-28 10:42:29 +00:00
Mengjiao Liu
b584b87a94
kube-controller-manager: readjust log verbosity
...
- Increase the global level for broadcaster's logging to 3 so that users can ignore event messages by lowering the logging level. It reduces information noise.
- Making sure the context is properly injected into the broadcaster, this will allow the -v flag value to be used also in that broadcaster, rather than the above global value.
- test: use cancellation from ktesting
- golangci-hints: checked error return value
2024-02-26 14:51:56 +08:00
AxeZhan
be48c93689
Sched framework: expose NodeInfo in all functions of PluginsRunner interface
2023-12-15 11:30:06 +08:00
Kubernetes Prow Robot
4189053453
Merge pull request #121755 from kerthcet/fix/node-update-event
...
Fix nodeUpdate event missing some potential changes
2023-12-13 22:36:03 +01:00
Kensei Nakada
3b8f25dfdd
fix: disable SchedulerQueueingHints feature flag by default
2023-12-13 04:16:43 +00:00
kerthcet
e5b86c1034
Fix node update event will miss some potential changes
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-11-27 15:33:47 +08:00
kerthcet
f77a4543d1
Unregister events in schedulingGates plugin
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-11-06 10:01:13 +08:00
Mengjiao Liu
b0a73213d6
kube-scheduler: convert the remaining part to use contextual logging
2023-10-24 17:56:48 +08:00
Kubernetes Prow Robot
6d7d249372
Merge pull request #121077 from chrishenzie/readwriteoncepod-ga
...
Graduate ReadWriteOncePod to GA
2023-10-24 05:26:05 +02:00
Kubernetes Prow Robot
441d4b54ae
Merge pull request #120397 from ty-dc/StaticCheck
...
cleanup: omit comparison with bool constants
2023-10-24 05:25:52 +02:00
Kubernetes Prow Robot
5a4e792e06
Merge pull request #120534 from pohly/dra-scheduler-ssa-as-fallback
...
dra scheduler: fall back to SSA for PodSchedulingContext updates
2023-10-23 21:06:58 +02:00
Kubernetes Prow Robot
581552eaf0
Merge pull request #116065 from sanposhiho/match-label-key-alternative
...
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-23 18:39:13 +02:00
Chris Henzie
2dbd405583
Graduate ReadWriteOncePod to GA
2023-10-20 10:40:39 -07:00
Kensei Nakada
cb5dc46edf
feature(scheduler): simplify QueueingHint by introducing new statuses
2023-10-19 11:02:11 +00:00
Kensei Nakada
d5d3c26337
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-18 11:28:02 +00:00
Kubernetes Prow Robot
3ac83f528d
Merge pull request #119290 from carlory/add-logger
...
the scheduling queue logs the error and treats it as QueueAfterBackoff
2023-09-22 08:10:49 -07:00
carlory
0105a002bc
when the hint fn returns error, the scheduling queue logs the error and treats it as QueueAfterBackoff.
...
Co-authored-by: Kensei Nakada <handbomusic@gmail.com >
Co-authored-by: Kante Yin <kerthcet@gmail.com >
Co-authored-by: XsWack <xushiwei5@huawei.com >
2023-09-21 09:40:44 +08:00
Mengjiao Liu
a7466f44e0
Change the scheduler plugins PluginFactory function to use context parameter to pass logger
...
- Migrated pkg/scheduler/framework/plugins/nodevolumelimits to use contextual logging
- Fix golangci-lint validation failed
- Check for plugins creation err
2023-09-20 17:49:54 +08:00
Patrick Ohly
7cac1dcf67
dra scheduler: fall back to SSA for PodSchedulingContext updates
...
During scheduler_perf testing, roughly 10% of the PodSchedulingContext update
operations failed with a conflict error. Using SSA would avoid that, but
performance measurements showed that this causes a considerable
slowdown (primarily because of the slower encoding with JSON instead of
protobuf, but also because server-side processing is more expensive).
Therefore a normal update is tried first and SSA only gets used when there has
been a conflict. Using SSA in that case instead of giving up outright is better
because it avoids another scheduling attempt.
2023-09-15 15:05:38 +02:00
Kensei Nakada
0d3eafdfa3
fix(scheduling_queue): always put Pods with no unschedulable plugins into activeQ/backoffQ ( #119105 )
...
* always put Pods with no unschedulable plugins into activeQ/backoffQ
* address review comments
2023-09-11 09:30:11 -07:00
Kensei Nakada
87d49a51be
fix(queue_test): make sure the first bind failure via counter
2023-09-06 19:47:54 +00:00
tao.yang
b35357b6c0
cleanup: omit comparison with bool constants
...
Signed-off-by: tao.yang <tao.yang@daocloud.io >
2023-09-05 10:24:38 +08:00
kerthcet
e6dfdb240f
Output the error message for better analylsis
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-09-04 20:31:48 +08:00
kerthcet
c29234d3e1
Add integration tests for all bind plugins skipped in TestBindPlugin
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-08-28 22:05:58 +08:00
Patrick Ohly
2472291790
api: introduce separate VolumeResourceRequirements struct
...
PVC and containers shared the same ResourceRequirements struct to define their
API. When resource claims were added, that struct got extended, which
accidentally also changed the PVC API. To avoid such a mistake from happening
again, PVC now uses its own VolumeResourceRequirements struct.
The `Claims` field gets removed because risk of breaking someone is low:
theoretically, YAML files which have a claims field for volumes now
get rejected when validating against the OpenAPI. Such files
have never made sense and should be fixed.
Code that uses the struct definitions needs to be updated.
2023-08-21 15:31:28 +02:00
SataQiu
ef7d404702
using wait.PollUntilContextTimeout instead of deprecated wait.Poll for pkg/scheduler
...
using wait.PollUntilContextTimeout instead of deprecated wait.Poll for test/integration/scheduler
using wait.PollUntilContextTimeout instead of deprecated wait.Poll for test/e2e/scheduling
using wait.ConditionWithContextFunc for PodScheduled/PodIsGettingEvicted/PodScheduledIn/PodUnschedulable/PodSchedulingError
2023-08-17 17:25:09 +08:00
git-jxj
a5b3a4b738
cleanup: Update deprecated FromInt to FromInt32 ( #119858 )
...
* redo commit
* apply suggestions from liggitt
* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00
Kubernetes Prow Robot
130a5a423f
Merge pull request #119785 from sanposhiho/waitonpermit-fiterror
...
fix: register the plugin rejects Pods in WaitOnPermit to UnschedulablePlugins
2023-08-15 23:13:04 -07:00
Kubernetes Prow Robot
57212647e9
Merge pull request #119769 from Huang-Wei/bug/prefilter-preemption
...
Fix a bug that PostFilter plugin may don't function if previous PreFilter plugins return Skip
2023-08-15 23:12:50 -07:00