yarntime
f21ff43368
add podAntiAffinity test cases
2016-10-13 17:01:58 +08:00
David Oppenheimer
cd4e08e7ec
Revert "Add kubelet awareness to taint tolerant match caculator."
2016-10-07 12:10:55 -07:00
Kubernetes Submit Queue
21188cadeb
Merge pull request #26501 from resouer/scheduler
...
Automatic merge from submit-queue
Add kubelet awareness to taint tolerant match caculator.
Add kubelet awareness to taint tolerant match caculator.
Ref: #25320
This is required by `TaintEffectNoScheduleNoAdmit` & `TaintEffectNoScheduleNoAdmitNoExecute `, so that node will know if it should expect the taint&tolerant
2016-10-07 12:05:35 -07:00
David Ashpole
0c8a664e50
addressed comments
2016-10-03 11:42:56 -07:00
David Ashpole
fed3f37eef
Split NodeDiskPressure into NodeInodePressure and NodeDiskPressure
2016-10-03 11:42:56 -07:00
Harry Zhang
c2cf5bbaf6
Setup e2e test for no admit
2016-10-01 01:07:18 -04:00
Kubernetes Submit Queue
b2aed32578
Merge pull request #33269 from deads2k/client-15-svc-lister
...
Automatic merge from submit-queue
simplify svc lister
trying to track down what killed the e2e tests.
2016-09-23 03:10:57 -07:00
Daniel Smith
db3e549bd1
more usages of go2idl
2016-09-22 13:42:46 -07:00
Harry Zhang
c735921b6f
Add no admit on node side
...
Update generated code
Refactored predicates & restore helper
2016-09-22 10:12:44 -04:00
deads2k
483af28944
fix up service lister
2016-09-22 09:12:37 -04:00
Antoine Pelisse
938872582e
Revert "simplify RC and SVC listers"
2016-09-21 15:49:38 -07:00
Kubernetes Submit Queue
2d9d84dc64
Merge pull request #32888 from deads2k/client-10-fixup-remaining-listers
...
Automatic merge from submit-queue
simplify RC and SVC listers
Make the RC and SVC listers use the common list functions that more closely match client APIs, are consistent with other listers, and avoid unnecessary copies.
2016-09-21 04:13:56 -07:00
Ivan Shvedunov
f758cb418d
Fix possible panic in PodAffinityChecker
2016-09-20 15:53:13 +03:00
deads2k
16fbb47189
fix up service lister
2016-09-20 08:24:33 -04:00
Kubernetes Submit Queue
4b5c74eed8
Merge pull request #31859 from resouer/fix-nits
...
Automatic merge from submit-queue
Fix minor nits in test cases
Found a group of nits when doing #30844 , fixed them in a this PR since 30844 requires a long time to review.
2016-09-18 06:27:12 -07:00
Mike Danese
a765d59932
move informer and controller to pkg/client/cache
...
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-09-15 12:50:08 -07:00
Harry Zhang
608e7ce0d4
Fix minor nits in test cases
2016-09-01 05:21:17 -04:00
Wojciech Tyczynski
33c710adf0
MapReduce-like scheduler priority functions
2016-08-31 15:16:10 +02:00
mksalawa
2749ec7555
Create PredicateFailureReason, modify scheduler predicate interface.
2016-08-09 14:01:46 +02:00
Kubernetes Submit Queue
faffbe4e18
Merge pull request #29622 from rootfs/rbd-ro
...
Automatic merge from submit-queue
allow a read-only rbd image mounted by multiple pods
allow pod to run read-only rbd volume
fix #27725
2016-08-07 17:03:39 -07:00
Huamin Chen
730db45eab
allow a read-only rbd image mounted by multiple pods
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-08-07 10:32:26 -04:00
Wojciech Tyczynski
022719b323
Enable PodAffinity by default in scheduler
2016-08-02 15:06:45 +02:00
Wojciech Tyczynski
4bc410e47a
Speedup pod affintiy predicate function
2016-08-02 08:01:04 +02:00
k8s-merge-robot
821ff657f9
Merge pull request #27199 from derekwaynecarr/disk_eviction
...
Automatic merge from submit-queue
Initial support for pod eviction based on disk
This PR adds the following:
1. node reports disk pressure condition based on configured thresholds
1. scheduler does not place pods on nodes reporting disk pressure
1. kubelet will not admit any pod when it reports disk pressure
1. kubelet ranks pods for eviction when low on disk
1. kubelet evicts greediest pod
Follow-on PRs will need to handle:
1. integrate with new image gc PR (https://github.com/kubernetes/kubernetes/pull/27199 )
1. container gc policy should always run (will not be launched from eviction, tbd who does that)
1. this means kill pod is fine for all eviction code paths since container gc will remove dead container
1. min reclaim support will just poll summary provider (derek will do follow-on)
1. need to know if imagefs is same device as rootfs from summary (derek follow-on)
/cc @vishh @kubernetes/sig-node
2016-07-28 20:18:54 -07:00
derekwaynecarr
0de1e62b30
modify fsStats to fsStatsType to avoid confusion with cadvisor types
2016-07-28 16:01:38 -04:00
derekwaynecarr
9604b47c13
Scheduler does not place pods on nodes that have disk pressure
2016-07-28 16:01:38 -04:00
Wojciech Tyczynski
898a6444e3
Return pointer for Affinity in api helper
2016-07-28 16:57:28 +02:00
Wojciech Tyczynski
fad876b6f9
PodAffinity code refinements
2016-07-22 08:49:28 +02:00
Wojciech Tyczynski
dcb5a6d1a6
Reuse existing Resource struct instead of new resourceRequest
2016-07-19 12:21:09 +02:00
k8s-merge-robot
a049a97820
Merge pull request #28803 from lukaszo/ds
...
Automatic merge from submit-queue
Make Daemonset use GeneralPredicates
fixes : #21454 #22205
2016-07-18 22:12:14 -07:00
Wojciech Tyczynski
a538045d7b
Cleanup and prepare for optimizing PodAffinity priority function.
2016-07-15 10:06:36 +02:00
Łukasz Oleś
528bf7af3a
Make Daemonset use GeneralPredicates
...
fixes #21454 , fixes #22205
2016-07-13 14:50:29 +02:00
Wojciech Tyczynski
c929d95884
Cache Allocatable Resources
2016-07-13 12:57:18 +02:00
Wojciech Tyczynski
ea1d797f98
Avoid computing ports multiple times
2016-07-13 11:02:26 +02:00
kevin-wangzefeng
ff6280fa5b
update inter-pod affinity predicates, check PodAntiAffinity even when pod has no AntiAffinity constraints
2016-07-13 03:55:01 +00:00
k8s-merge-robot
9b5827691a
Merge pull request #28669 from lixiaobing10051267/masterTestPodFitsResources
...
Automatic merge from submit-queue
Add test case to TestPodFitsResources() of scheduler algorithm
File "plugin\pkg\scheduler\algorithm\predicates", function "TestPodFitsResources()", line 199, only provide test case "one resource cpu fits but memory not", it should add test case "one resource memory fits but cpu not".
2016-07-11 22:46:09 -07:00
k8s-merge-robot
5067af159e
Merge pull request #28715 from euank/kubelet-trim-dead-code
...
Automatic merge from submit-queue
kubelete: delete a few bits of dead code
Less is more.
2016-07-11 11:40:47 -07:00
Wojciech Tyczynski
dcb2ca54ad
Avoid unnecessary copies
2016-07-11 15:41:27 +02:00
Wojciech Tyczynski
989202c384
Cache AllowedPodNumber to avoid conversions.
2016-07-11 15:41:26 +02:00
Wojciech Tyczynski
4eed5e07a5
Precompute pod resources
2016-07-11 15:41:26 +02:00
Wojciech Tyczynski
e8e8e2d086
Remove unneeded factories
2016-07-11 15:41:26 +02:00
PingWang
4fde2ff3a5
Update CheckServiceAffinity in predicates.go
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
gofmt -s -w
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2016-07-11 09:57:57 +08:00
Euan Kemp
26e0f50504
kubelet: delete unused code
2016-07-08 15:15:43 -07:00
Wojciech Tyczynski
b1d53895a4
Check only predicate functions in test
2016-07-08 13:01:41 +02:00
Wojciech Tyczynski
b92eadfd1a
Avoid computing QOS multiple times
2016-07-08 12:57:40 +02:00
Wojciech Tyczynski
6890868823
Add meta field to predicates signature
2016-07-08 12:25:48 +02:00
lixiaobing10051267
b4c106426e
Add test case to TestPodFitsResources()
2016-07-08 15:43:03 +08:00
Wojciech Tyczynski
58c95c136f
Quick returns in predicates
2016-07-07 12:34:54 +02:00
Hongchao Deng
7127915a66
selector: make sure value of GT and LT is integer
2016-07-04 20:18:17 -07:00
k8s-merge-robot
61a9358dbd
Merge pull request #26774 from xiangpengzhao/fix_predicatesnil
...
Automatic merge from submit-queue
Check nil pointer in predicates.go
Should check if the pointer is nil in func filterVolumes as is done in [func predicate](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/algorithm/predicates/predicates.go#L279 ).
2016-06-30 01:45:26 -07:00