Aldo Culquicondor
e3bdb4b20b
Store topology spread constraints in metadata with labels.Selector
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-13 10:10:08 -05:00
Fabio Bertinatto
a59abc3cc3
Convert scheduler to use CSINode GA
2019-11-12 09:43:54 +01:00
Fabio Bertinatto
affcd0128b
Promote volume limits to GA
2019-11-12 09:43:53 +01:00
Aldo Culquicondor
6a98c93f3c
Add MetadataProducerFactory for predicates
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-11-11 11:27:44 -05:00
Andrew Sy Kim
094b614934
scheduler: max attachable volume predicate should also check stable instance-type label
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-11-08 10:52:12 -05:00
Kubernetes Prow Robot
46472773cb
Merge pull request #84836 from yuxiaobo96/k8s-checks
...
Correct spelling mistakes
2019-11-06 12:21:11 -08:00
Kubernetes Prow Robot
b09b962d96
Merge pull request #84746 from Huang-Wei/move-sched-constrants
...
Move out const strings in pkg/scheduler/api/well_known_labels.go
2019-11-06 12:20:06 -08:00
yuxiaobo
81e9f21f83
Correct spelling mistakes
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-11-06 20:25:19 +08:00
Wei Huang
dd74205bcf
Move out const strings in pkg/scheduler/api/well_known_labels.go
2019-11-05 20:56:21 -08:00
Abdullah Gharaibeh
134baa50b9
Convert multiple node label predicates to be a single filter plugin.
2019-11-05 10:34:51 -05:00
Wei Huang
c649666b4a
manual API changes and code refactoring
...
- add Policy API to pkg/scheduler/apis/config and staging/src/k8s.io/kube-scheduler/config/v1
- dual-register Policy as apiGroup "v1" and "kubescheduler.config.k8s.io
- move/merge pkg/scheduler/api to pkg/scheduler/apis/config/...
- alias schedulerapi to pkg/scheduler/apis/config
- alias legacyapi to pkg/scheduler/api
- eliminate latest.Codec; use scheme.Codecs instead
- unit tests to verify Policy YAML with version "v1" or "kubescheduler.config.k8s.io/v1" can be loaded properly
- update api/api-rules/violation_exceptions.list
2019-11-01 14:24:36 -07:00
Abdullah Gharaibeh
0a29c06ba6
delete nodeinfo lister
2019-10-30 08:59:18 -04:00
Abdullah Gharaibeh
8ec56aeafb
Change all scheduler's Node and Pod list/lookups to be from the snapshot rather than the cache.
2019-10-25 14:24:55 -04:00
Jordan Liggitt
0e2f2dde4d
Feature-gate CSINode and CSIDriver informer starts
2019-10-24 17:44:25 -04:00
zouyee
3bfdcf56e6
Remove wrappers around storage-related listers in the predicate
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-24 23:26:15 +08:00
Abdullah Gharaibeh
d393804237
separate listers into their own package
2019-10-22 18:11:02 -04:00
draveness
09f333940e
feat: remove CheckNodeMemoryPressure/DiskPressure/PIDPressure/Condition predicates
2019-10-22 15:28:32 +08:00
Pradeep Hiremande
678b670f92
Issue 83458:Changed the return check for GetNodeInfo
2019-10-21 21:51:31 +05:30
Kubernetes Prow Robot
019b662ff5
Merge pull request #84017 from ahg-g/ahg-csi
...
Remove CSINode from scheduler cache.
2019-10-20 03:17:37 -07:00
draveness
e1f86e3460
feat(scheduler): replace several algorithm listers with client listers
2019-10-19 17:26:32 +08:00
Abdullah Gharaibeh
a772722660
Remove CSINode from scheduler cache.
2019-10-19 03:52:22 +00:00
draveness
9554276d17
feat(scheduler): create metadata and addPod/removePod for migration
2019-10-08 10:05:22 +08:00
SataQiu
7cb4850699
clean up code for scheduler
2019-09-23 12:50:15 +08:00
Kubernetes Prow Robot
ead8e0c24e
Merge pull request #80814 from xiaoanyunfei/cleanup/GeneralPredicates
...
Use iteration to make the GeneralPredicates code cleaner
2019-08-27 00:52:40 -07:00
Wei Huang
8f559ea53b
Optimize internal data structure of EvenPodsSpread
...
- Rename 'topologyPairsPodSpreadMap' to 'podSpreadCache'
- New struct `criticalPaths criticalPaths`
- Add unified method `*criticalPaths.update()` for:
- regular update
- addPod in preemption case
- remotePod in preemption case
2019-08-20 09:26:41 -07:00
Fabio Bertinatto
c5d9af2bda
Update predicates to use cached CSINode in scheduler
2019-08-01 10:15:20 +02:00
xiaofei.sun
bff9ad44f9
clean GeneralPredicates code
2019-07-31 23:06:46 +08:00
Fabio Bertinatto
6e9112b7fe
When PVC is invalid, don't count volumes in scheduler predicate
2019-07-31 12:56:28 +02:00
Fabio Bertinatto
ee7b48b7c5
Don't count unrelated volumes in scheduler predicate
2019-07-31 12:56:28 +02:00
Wei Huang
0bff4c27d6
EvenPodsSpread: weigh constraints individually
...
- update logic to weigh each constraint individually
- address comments and misc fixes
2019-07-26 20:48:05 -07:00
Wei Huang
821446ed70
EvenPodsSpread: Make some funcs in predicates pkg as public
2019-07-26 20:48:05 -07:00
Wei Huang
9e9808d0ab
EvenPodsSpread: Supports Preemption (removePod)
...
- add removePod() for podSpreadMap
2019-07-24 15:27:54 -07:00
Wei Huang
1822085088
EvenPodsSpread: update 'selfMatch' logic
2019-07-24 10:28:46 -07:00
Wei Huang
39e459ae9a
fixup: address comments
2019-07-24 10:28:46 -07:00
Wei Huang
e0e3889d74
EvenPodsSpread: Core Predicate logic
2019-07-24 10:28:46 -07:00
Wei Huang
08e7b3bacb
EvenPodsSpread: Define a new Predicate
2019-07-24 10:28:46 -07:00
Eric Ernst
62e9717386
scheduler: add pod Overhead support for requests
...
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-07-16 12:56:19 -07:00
Kubernetes Prow Robot
3a009af5c2
Merge pull request #79098 from chendave/update_comments
...
Update the comments on how to check disk conflict
2019-07-04 08:18:36 -07:00
draveness
30b0f8bf3b
fix: predicates read nodes from scheduler cache
2019-06-29 02:34:08 +08:00
Fabio Bertinatto
00b0ab86af
Update scheduler to use volume limits from CSINode
2019-06-25 16:30:54 +02:00
Dave Chen
a9aea022ce
Update the comments on how to check disk conflict
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2019-06-17 17:47:16 +08:00
Wei Huang
c4df3a2c44
prevent predicatesOrdering
from escaping from UT
...
- sets `predicatesOrdering` back to original value in UT
2019-05-08 18:05:34 -07:00
caiweidong
4486021837
Avoid useless caller
2019-04-19 00:18:54 +08:00
shinytang6
6d11926709
clean up comments
2019-04-14 20:03:39 +08:00
Ted Yu
02e0f9c5fd
Produce map according to the shorter array in haveOverlap
2019-04-08 13:22:30 -07:00
Jonathan Basseri
1b447e8d19
Scheduler: Logging cleanup in predicates.go.
...
This is some light cleanup of logs in predicates.go. In particular, some
log lines have details clarified that will make debugging easier.
I have not touched any VLOG messages, since those usually have plenty of
detail.
2019-03-22 17:33:18 -07:00
Hemant Kumar
8c537b4693
Deprecate cloudprovider specific volume limit predicates
...
Fixes https://github.com/kubernetes/kubernetes/issues/72920
2019-02-25 16:24:29 -05:00
Andrew Kim
ca6a051b00
remove cloud provider dependencies to pkg/volume
...
Co-authored-by: Weibin Lin <linweibin1@huawei.com>
2019-02-09 01:16:55 -05:00
Davanum Srinivas
b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
...
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>
Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
Bobby (Babak) Salamat
eb59bc605c
Short circuit volume checker if the pod is not requesting any volumes
2019-02-01 22:02:30 -08:00