Commit Graph

29146 Commits (552a247639f2e426c2533ed78bbaacae096269d2)

Author SHA1 Message Date
mqliang 552a247639 update auto generation files 2016-05-20 20:44:40 +08:00
mqliang 17d5a302bb make podcidr mask size configurable 2016-05-20 20:44:40 +08:00
mqliang cf7a3475f3 Don't allow node controller to allocate into service CIDR range 2016-05-20 20:44:40 +08:00
mqliang 69b8453fa0 cidr allocator 2016-05-20 20:44:40 +08:00
k8s-merge-robot b7a31ad261 Merge pull request #25690 from fabianofranz/fixes_panic_on_roundtripper_when_tls_under_proxy
Automatic merge from submit-queue

Fixes panic on round tripper when TLS under a proxy

When under a proxy with a valid cert from a trusted authority, the `SpdyRoundTripper` will likely not have a `*tls.Config` (no cert verification nor `InsecureSkipVerify` happened), which will result in a panic. So we have to create a new `*tls.Config` to be able to create a TLS client right after. If `RootCAs` in that new config is nil, the system pool will be used.

@ncdc PTAL 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-20 05:31:42 -07:00
k8s-merge-robot 27512dd0a1 Merge pull request #25190 from ingvagabund/e2e-scheduler-predicates-validate-resource-limits
Automatic merge from submit-queue

SchedulerPredicates e2e test: be more verbose about requested resource

When ``validates resource limits of pods that are allowed to run [Conformance]`` test is run, logs could give more information about requested resource and say it is for cpu and in mili units.

cpu is stored in m units here:

```
nodeToCapacityMap[node.Name] = capacity.MilliValue()
```
2016-05-20 05:31:38 -07:00
k8s-merge-robot 3b0a6dac1f Merge pull request #25571 from gmarek/nodecontroller
Automatic merge from submit-queue

NodeController doesn't evict Pods if no Nodes are Ready

Fix #13412 #24597

When NodeControllers don't see any Ready Node it goes into "network segmentation mode". In this mode it cancels all evictions and don't evict any Pods.

It leaves network segmentation mode when it sees at least one Ready Node. When leaving it resets all timers, so each Node has full grace period to reconnect to the cluster.

cc @lavalamp @davidopp @mml @wojtek-t @fgrzadkowski
2016-05-20 05:31:34 -07:00
k8s-merge-robot 2c038e38c5 Merge pull request #25817 from ihmccreery/fix-skew-kubectl
Automatic merge from submit-queue

Fix JENKINS_USE_SKEW_KUBECTL

I got this logic wrong; the first is a NOT comparison, so the second should only be available if that NOT comparison returns true.
2016-05-20 04:42:19 -07:00
k8s-merge-robot 97a7d009ad Merge pull request #25708 from ixdy/node-e2e-test-timeout
Automatic merge from submit-queue

Add a timeout to the node e2e Ginkgo test runner

Also add a few debugging statements to indicate progress.

Should help prevent #25639, since we'll timeout tests before Jenkins times out the build.
2016-05-20 04:42:16 -07:00
k8s-merge-robot e851d749e4 Merge pull request #25583 from chrislovecnm/cassandra-image-bump
Automatic merge from submit-queue

Cassandra examples updating images to v9

- this is a version bump for the C* image
- I also increased the cpu to .5 because .1 is slow like warm death

Who can actually run the build to get the container to the examples repo?
2016-05-20 04:42:12 -07:00
k8s-merge-robot d0ed68f89b Merge pull request #25904 from Random-Liu/fix-init-container-waiting-state
Automatic merge from submit-queue

Properly handle init containers in convertToAPIContainerStatuses

Fix https://github.com/kubernetes/kubernetes/issues/25879
Fix https://github.com/kubernetes/kubernetes/issues/25844

This PR changed `convertToAPIContainerStatuses` to only generate waiting state when the init container really needs to be restarted.
Addresses https://github.com/kubernetes/kubernetes/issues/25844#issuecomment-220418068

Will send a better fix and add unit test later.
/cc @yujuhong @smarterclayton
2016-05-20 04:42:08 -07:00
k8s-merge-robot bd8033e2b0 Merge pull request #25864 from jsafrane/devel/pv-fix-log
Automatic merge from submit-queue

volume controller: Fix method name in a log message

It's deleteVolume, not deleteClaim.

@kubernetes/sig-storage
2016-05-20 03:53:22 -07:00
k8s-merge-robot e27f20780d Merge pull request #25679 from quinton-hoole/2016-05-16-update-googleapi-package
Automatic merge from submit-queue

Update vendor package google.golang.org/api/googleapi.
2016-05-20 03:53:18 -07:00
k8s-merge-robot 9e23c551ba Merge pull request #24051 from aveshagarwal/master-downward-api-resources-limits-requests
Automatic merge from submit-queue

Downward API proposal for resources (cpu, memory) limits and requests

Proposal to address #9473
This PR proposes three approaches to expose values of resource limits and requests as env vars and volumes.This proposal has details about merits and demerits of each approach, and I am looking for community feedback regarding which one (or may more than one) we would like to go with. Also would like to know if there is any other approach.

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24051)
<!-- Reviewable:end -->
2016-05-20 03:00:00 -07:00
Filip Grzadkowski 97d5a733d8 Merge pull request #25954 from wojtek-t/max_infligh_limit_logs
Log requests returning TooManyRequests error
2016-05-20 11:28:33 +02:00
Filip Grzadkowski 31c1825856 Merge pull request #25753 from dlorenc/nodecount
Add a flag that lets e2e tests be run against single-node clusters.
2016-05-20 10:30:12 +02:00
Filip Grzadkowski 782de9d024 Merge pull request #25732 from 249043822/249043822-patch-1
Update fake.go Unlock optimize
2016-05-20 10:29:26 +02:00
Filip Grzadkowski 2f2b7c8c97 Merge pull request #25734 from jszczepkowski/kac-test
Added enforcing of setting nodes numbers for cluster autoscaler.
2016-05-20 10:28:56 +02:00
Filip Grzadkowski d1627111b3 Merge pull request #25767 from johscheuer/fix-hyperkube-makefile-2
Hyperkuber Makefile add support for OSX and Linux
2016-05-20 10:28:06 +02:00
Filip Grzadkowski afea2e2f95 Merge pull request #25780 from andyzheng0831/test-case
e2e: simple pod HTTP proxy test should use amd64 kubectl for GCI
2016-05-20 10:27:17 +02:00
Filip Grzadkowski d3522dd8d2 Merge pull request #24128 from smarterclayton/dns_test_change
Allow cluster DNS e2e verification to be overriden
2016-05-20 10:26:13 +02:00
Filip Grzadkowski c4e239b314 Merge pull request #25918 from smarterclayton/init_annotation_mutation
Conversions were mutating the internal object
2016-05-20 10:25:36 +02:00
Wojciech Tyczynski f3c70ffeeb Log requests returning TooManyRequests error 2016-05-20 10:18:05 +02:00
Filip Grzadkowski ab10484330 Merge pull request #25741 from fgrzadkowski/unschedulable_pod
Stop setting Message when updating PodScheduled condition
2016-05-20 10:02:13 +02:00
Filip Grzadkowski 0bc2f47ac8 Merge pull request #25951 from kubernetes/revert-25843-container-v1-3-v20160517
Revert "Bump GCE ContainerVM to container-v1-3-v20160517 (Docker 1.11.1)"
2016-05-20 09:05:58 +02:00
Wojciech Tyczynski b294979d00 Revert "Bump GCE ContainerVM to container-v1-3-v20160517 (Docker 1.11.1)" 2016-05-20 09:02:11 +02:00
Daniel Smith 4a78db6137 Merge pull request #25947 from lavalamp/gctest
emergency gc test fix--be extra safe
2016-05-19 22:07:40 -07:00
Daniel Smith 785f1c31a6 emergency gc test fix--be extra safe 2016-05-19 22:04:50 -07:00
Daniel Smith e8ff608901 Merge pull request #25943 from lavalamp/gctest
emergency gc test fix
2016-05-19 21:45:45 -07:00
Daniel Smith 8e7b7a2f9a emergency gc test fix 2016-05-19 21:44:31 -07:00
Avesh Agarwal 0f3a8bd061 Downward API proposal for resources (cpu, memory) limits and requests 2016-05-19 22:57:24 -04:00
k8s-merge-robot 505fb85726 Merge pull request #25920 from wonderfly/use_base_image
Automatic merge from submit-queue

Jenkins: start using base images for Trusty tests

@spxtr Can you review this XS change?

cc/ @kubernetes/goog-image
2016-05-19 17:13:27 -07:00
k8s-merge-robot 53b5b41abb Merge pull request #17688 from derekwaynecarr/systemd_nodespec
Automatic merge from submit-queue

systemd node spec proposal

The following outlines changes that I want to make to the ```kubelet``` in order to better integrate with ```systemd``` systems, and to better isolate containers in their own ```cgroup``` based on the qos tier.

I think this is a precursor to getting more intelligent low compute resource eviction.

/cc @smarterclayton @ncdc @pmorie @dchen1107 @vishh @bgrant0607

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/17688)
<!-- Reviewable:end -->
2016-05-19 17:13:21 -07:00
Random-Liu f9203e6813 Add unit test for generateAPIPodStatus for normal containers and init containers 2016-05-19 17:12:29 -07:00
Random-Liu 38b188aa94 Properly handle init containers in convertToAPIContainerStatuses 2016-05-19 17:03:25 -07:00
Daniel Smith 1a64ae88b7 Merge pull request #25843 from zmerlynn/container-v1-3-v20160517
Bump GCE ContainerVM to container-v1-3-v20160517 (Docker 1.11.1)
2016-05-19 16:57:13 -07:00
Daniel Smith 5448400b1c Merge pull request #25243 from smarterclayton/explore_quantity
Provide an int64 version of Quantity that is much faster
2016-05-19 16:56:48 -07:00
Daniel Wang 967b869c67 Jenkins: start using base images for Trusty tests 2016-05-19 15:23:30 -07:00
Clayton Coleman 997d55d796
Conversions were mutating the internal object
Internal objects can be shared, it is not allowed to mutate an internal
object in conversion.
2016-05-19 18:01:35 -04:00
k8s-merge-robot 1cce156597 Merge pull request #24801 from thockin/validation_pt8-4
Automatic merge from submit-queue

Make DNS validators return error strings

Part of the larger validation PR, broken out for easier review and merge.  Builds on previous PRs in the series.
2016-05-19 14:49:00 -07:00
k8s-merge-robot ef952efb82 Merge pull request #25800 from ingvagabund/mounttest-use-stats-instead-of-lstat-to-read-symlinks
Automatic merge from submit-queue

gcr.io/google_containers/mounttest: use Stat instead of Lstat

The current ``mt.go`` implementation use ``os.Lstat`` instead of ``os.Stat`` which does not read symlinks. Since implementation of ``AtomicWriter`` (which relies on existence of symlinks), the updated implementation of secret volume using the ``AtomicWriter`` can not be tested for secret file permission. Replacing ``Lstat`` with ``Stat`` allows to read symlinks and return permissions of target file. The change affects ``--file_perm`` and ``--file_mode`` options only.

``mounttest`` image is currently used by:

##### downwardapi_volume.go
- e2e: Downward API volume
- version: 0.6
- args: --file_content, --break_on_expected_content, --retry_time, --file_content_in_loop

##### empty_dir.go
- e2e: EmptyDir volumes
- version: 0.5
- args: --file_perm, --file_perm, ...

##### host_path.go
- e2e: hostPath
- version: 0.6
- args: --file_mode, ...

##### configmap.go
- e2e: ConfigMap
- version: 0.6
- args: --file_content, --break_on_expected_content, --retry_time, --file_content_in_loop

##### service_accounts.go
- e2e: ServiceAccounts
- version: 0.2
- args: --file_content

Some of the e2e tests use at least one of the affected options. Locally, I have updated all version of mounttest images to 0.7. All e2e tests pass with the new image.
2016-05-19 13:15:24 -07:00
Tim Hockin 54a3efb364 Make IsDNS952Label return error strings 2016-05-19 08:57:49 -07:00
Tim Hockin 5862a60ae7 Make IsDNS1123Subdomain return error strings 2016-05-19 08:57:49 -07:00
Tim Hockin 77eff06a53 Make IsDNS1123Label return error strings 2016-05-19 08:57:49 -07:00
Clayton Coleman 2c9b83f291 Disable ppc64le for now 2016-05-19 10:19:35 -04:00
Wojciech Tyczynski 9784dff94e Merge pull request #25871 from smarterclayton/retry_on_error
Fix the Retry-After code path to work for clients, and send correct bodies
2016-05-19 16:18:18 +02:00
k8s-merge-robot 044d55ed7d Merge pull request #24142 from rrati/controller-sync-interval-23394
Automatic merge from submit-queue

Separated resync and relist functionality in reflector #23394

controller-manager #23394
2016-05-19 07:10:00 -07:00
k8s-merge-robot d33fa39abf Merge pull request #23254 from jsafrane/devel/ulimited-aws-devices
Automatic merge from submit-queue

AWS: Move enforcement of attached AWS device limit from kubelet to scheduler

Limit of nr. of attached EBS volumes to a node is now enforced by scheduler. It can be adjusted by `KUBE_MAX_PD_VOLS` env. variable there. Therefore we don't need the same check in kubelet. If the system admin wants to attach more, we should allow it.

Kubelet limit is now 650 attached volumes ('ba'..'zz').

Note that the scheduler counts only *pods* assigned to a node. When a pod is deleted and a new pod is scheduled on a node, kubelet start (slowly) detaching the old volume and (slowly) attaching the new volume. Depending on AWS speed **it may happen that more than KUBE_MAX_PD_VOLS volumes are actually attached to a node for some time!** Kubelet will clean it up in few seconds / minutes (both attach/detach is quite slow).

Fixes #22994
2016-05-19 06:13:42 -07:00
k8s-merge-robot d89d45a861 Merge pull request #25266 from smarterclayton/common_storage
Automatic merge from submit-queue

kube-apiserver options should be decoupled from impls

A few months ago we refactored options to keep it independent of the
implementations, so that it could be used in CLI tools to validate
config or to generate config, without pulling in the full dependency
tree of the master.  This change restores that by separating
server_run_options.go back to its own package.

Also, options structs should never contain non-serializable types, which
storagebackend.Config was doing with runtime.Codec. Split the codec out.

Fix a typo on the name of the etcd2.go storage backend.

Finally, move DefaultStorageMediaType to server_run_options.

@nikhiljindal as per my comment in #24454, @liggitt because you and I
discussed this last time
2016-05-19 06:13:38 -07:00
Clayton Coleman eeb04e6826
Reset input buffer on retry
Retries were previously sending empty bodies to the server.
2016-05-19 09:08:57 -04:00