Commit Graph

13639 Commits

Author SHA1 Message Date
Justin Santa Barbara
f9a6ac077e Ubernetes Lite: Volumes can dictate zone scheduling
For AWS EBS, a volume can only be attached to a node in the same AZ.
The scheduler must therefore detect if a volume is being attached to a
pod, and ensure that the pod is scheduled on a node in the same AZ as
the volume.

So that the scheduler need not query the cloud provider every time, and
to support decoupled operation (e.g. bare metal) we tag the volume with
our placement labels.  This is done automatically by means of an
admission controller on AWS when a PersistentVolume is created backed by
an EBS volume.

Support for tagging GCE PVs will follow.

Pods that specify a volume directly (i.e. without using a
PersistentVolumeClaim) will not currently be scheduled correctly (i.e.
they will be scheduled without zone-awareness).
2015-12-31 12:27:01 -05:00
k8s-merge-robot
7743a4ca89 Merge pull request #19215 from Random-Liu/Reformat-TODOs
Auto commit by PR queue bot
2015-12-31 01:43:36 -08:00
Random-Liu
b2a72ca384 Change my TODO to be the same with others 2015-12-31 00:41:05 -08:00
Wojciech Tyczynski
60fc2bc09e Fix cacher_test flake 2015-12-31 07:53:41 +01:00
Tim Hockin
da0ac31182 Set conntrack params in kube-proxy
Add flags to control max connections (set to 256k vs 64k default) and TCP
established timeout (set to 1 day vs 5 day default).  Flags can be set to 0 to
mean "don't change it".

This is only set at startup, and not wrapped in a rectifier loop.

Tested manually.
2015-12-30 15:46:40 -08:00
nikhiljindal
87ce093c77 Moving API registration logic to generic api server 2015-12-30 14:22:14 -08:00
k8s-merge-robot
712fcf1c63 Merge pull request #15939 from mqliang/waitgroup
Auto commit by PR queue bot
2015-12-30 12:25:01 -08:00
Wojciech Tyczynski
5a3dbedf3e Merge pull request #19203 from wojtek-t/logging_for18928
Extend logging for debugging #18794 purposes
2015-12-30 21:00:26 +01:00
Wojciech Tyczynski
65696989b2 Extend logging for debugging 18928 2015-12-30 20:09:05 +01:00
k8s-merge-robot
558f69e613 Merge pull request #19196 from wojtek-t/fix_wait_test
Auto commit by PR queue bot
2015-12-30 07:54:05 -08:00
k8s-merge-robot
7113cfe57f Merge pull request #19195 from wojtek-t/fix_master_test
Auto commit by PR queue bot
2015-12-30 07:21:02 -08:00
k8s-merge-robot
9287a108a4 Merge pull request #18156 from wojtek-t/use_new_deep_copies
Auto commit by PR queue bot
2015-12-30 05:11:02 -08:00
Wojciech Tyczynski
6d33d28de8 Fix wait_test flakes 2015-12-30 14:05:46 +01:00
Wojciech Tyczynski
9ada897057 Fix master_test flake 2015-12-30 13:49:43 +01:00
Yifan Gu
9b81b67879 rkt: Move image related functions to image.go 2015-12-29 17:17:27 -08:00
k8s-merge-robot
cf359053f0 Merge pull request #19047 from smarterclayton/avoid_reflection_during_convert
Auto commit by PR queue bot
2015-12-29 13:49:10 -08:00
k8s-merge-robot
356487c951 Merge pull request #18101 from brendandburns/kubectl6
Auto commit by PR queue bot
2015-12-29 12:43:42 -08:00
Wojciech Tyczynski
baf97c9c5e First use of new deep-copy generator. 2015-12-29 18:06:09 +01:00
Clayton Coleman
4d672c37b8 Updated conversions to be public 2015-12-29 10:40:38 -05:00
Clayton Coleman
3c1451af91 Use public conversion methods to avoid reflection
Replace many of the remaining s.Convert() invocations with direct
execution, and make generated methods public. Removes 10% of the
allocations during decode of a pod and ~20-40% of the total CPU time.
2015-12-29 10:38:42 -05:00
k8s-merge-robot
fec5206f1a Merge pull request #13840 from nelcy/master
Auto commit by PR queue bot
2015-12-28 23:55:32 -08:00
k8s-merge-robot
03b3b61565 Merge pull request #19145 from Random-Liu/cleanup-pod-print
Auto commit by PR queue bot
2015-12-28 17:50:44 -08:00
k8s-merge-robot
58ae1a42de Merge pull request #19063 from gmarek/use-metrics
Auto commit by PR queue bot
2015-12-28 15:10:56 -08:00
Random-Liu
6e92ddf9e1 Cleanup pod print in dockertools/manager.go, prober/prober.go and
runonce.go
2015-12-28 14:07:37 -08:00
Weixu Zhuang
3928bd6e76 Fix TODO in pkg/controller/nodecontroller.go line 472
The code now calculates and find out the CIDRs for every node in any sync period.
I will fix this TODO by maintaining a set for available CIDRs left. Firstly, I will
insert 256 CIDRs into the available set. Once someone get one CIDR, remove this CIDR
from the available set. If one node get deleted, we will reinsert the CIDR associates
with this node back to available CIDR. Once there are nothing left in available CIDR set,
generate another 256 CIDRs and insert them into the available set. As a result, we do not
need to generate CIDRs in every monitor process and we only need to assign CIDR to node
which does not have it.

This commit also fix the error that CIDR may overflow when we use the function
generateCIDRs. There will be no more ip overflowing, all assigan CIDR will be valid
2015-12-28 11:15:38 -08:00
Wojciech Tyczynski
05b60a30cf Fix flakes in cacher_test 2015-12-28 15:28:07 +01:00
k8s-merge-robot
25f5daa0e2 Merge pull request #19135 from wojtek-t/close_watch_in_generic_registry
Auto commit by PR queue bot
2015-12-28 05:36:11 -08:00
k8s-merge-robot
1e19011f9a Merge pull request #19133 from wojtek-t/cleanup_logs
Auto commit by PR queue bot
2015-12-28 05:36:08 -08:00
k8s-merge-robot
451f4bdbc2 Merge pull request #19130 from wojtek-t/fix_stop_cacher
Auto commit by PR queue bot
2015-12-28 03:45:34 -08:00
Wojciech Tyczynski
1803a11557 Get rid of rubbish logs from serialization_test 2015-12-28 12:13:07 +01:00
gmarek
2dcafa3854 Add a flag that will make test gather metrics from all running components after the test finishes. 2015-12-28 12:10:39 +01:00
k8s-merge-robot
c36226bc39 Merge pull request #19058 from gmarek/more-metrics
Auto commit by PR queue bot
2015-12-28 03:09:23 -08:00
Wojciech Tyczynski
8dc83547b0 Close watch in generic etcd_test 2015-12-28 11:43:20 +01:00
Wojciech Tyczynski
ec70eb16f3 Graceul termination in Cacher 2015-12-28 10:54:21 +01:00
Wojciech Tyczynski
0b7dce9505 Fix a bug in etcd_watcher_test 2015-12-28 10:43:33 +01:00
gmarek
2c6c8d8371 Finish MetricsGrabber 2015-12-28 09:19:40 +01:00
Clayton Coleman
9dad7e624c Split the serviceaccount package into two parts
Public utility methods and JWT parsing, and controller specific logic.
Also remove the coupling between ServiceAccountTokenGetter and the
authenticator class.
2015-12-26 21:28:12 -05:00
Clayton Coleman
3d5ed379b0 authn.go doesn't belong in pkg/apiserver
apiserver does not need to know about specific authentication
mechanisms, and does not need to take dependencies on all the
authentication packages.
2015-12-26 21:22:22 -05:00
mqliang
7d87a1de99 create and delete concurrently 2015-12-26 21:30:31 +08:00
k8s-merge-robot
500493a3ac Merge pull request #18925 from caesarxuchao/refactor-registration
Auto commit by PR queue bot
2015-12-24 15:19:36 -08:00
k8s-merge-robot
21c01c05e3 Merge pull request #18902 from deads2k/gv-partial
Auto commit by PR queue bot
2015-12-24 01:42:59 -08:00
k8s-merge-robot
16e1de6db6 Merge pull request #18859 from deads2k/gv-grab-bag
Auto commit by PR queue bot
2015-12-23 23:57:24 -08:00
Chao Xu
ad484c79f7 pass runtime.Scheme as parameter to AddToScheme 2015-12-23 23:21:35 -08:00
Chao Xu
2b5b708b70 Refactor the API registration and installation 2015-12-23 22:44:25 -08:00
k8s-merge-robot
be235e8754 Merge pull request #18940 from smarterclayton/nil_body
Auto commit by PR queue bot
2015-12-23 18:02:03 -08:00
Chakravarthy Nelluri
fa76de79e5 Add support for flex volume. Flex volume adds support for thirdparty(vendor)
volumes and custom mounts.
2015-12-23 14:11:38 -08:00
k8s-merge-robot
344d4bb5fa Merge pull request #18798 from yifan-gu/rkt_bump
Auto commit by PR queue bot
2015-12-23 13:37:36 -08:00
k8s-merge-robot
05a1295085 Merge pull request #18714 from gmarek/metrics-grabber
Auto commit by PR queue bot
2015-12-23 10:30:06 -08:00
k8s-merge-robot
ac0ce7257b Merge pull request #18702 from wojtek-t/remove_unversioned_selectors
Auto commit by PR queue bot
2015-12-23 09:51:53 -08:00
k8s-merge-robot
c3fcfd9651 Merge pull request #17881 from jiangyaoguo/emit-event-when-delete-pod
Auto commit by PR queue bot
2015-12-23 07:01:54 -08:00