Commit Graph

81194 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
12e462b21a
Merge pull request #80656 from seans3/move-kubectl-version
Move pkg/kubectl/version to staging
2019-07-27 07:33:56 -07:00
Arvinderpal Wander
ca3bdfd793 kubeadm networking related tests.
* podSubnet check: if a podSubnet is specified in kubeadm-config
   then the e2e test will check that pod-cidrs of individual nodes
   fall within this range.
 * serviceSubnet check: if a serviceSubnet is specified in
   kubeadm-config then the e2e test will check that the kubernetes
   service created in the default namespace got a service IP
   from the configured range.
2019-07-27 07:30:26 -07:00
Kubernetes Prow Robot
9a065a2b26
Merge pull request #80350 from RainbowMango/pr_update_HandleCrash_misleading_comments
Update misleading comemnts for HandleCrash
2019-07-27 06:09:56 -07:00
Kubernetes Prow Robot
b344fb016a
Merge pull request #79063 from Huang-Wei/eps-priority
Even Pods Spread - 5. Priority Core
2019-07-27 02:17:57 -07:00
RainbowMango
0f0aa9c8f1 Update misleading comemnts for HandleCrash 2019-07-27 16:01:02 +08:00
Kubernetes Prow Robot
0f32f9ef0e
Merge pull request #77100 from chardch/add-driver-version
Emit the nvidia driver version in gpu e2e test
2019-07-27 00:49:57 -07:00
RainbowMango
0e0e1f7dab 1. Fix lint errors for the whole directory staging/src/k8s.io/client-go/tools/cache;
2. Remove staging/src/k8s.io/client-go/tools/cache from .golint_failures;
3. Fix some typo from comments.
2019-07-27 15:49:03 +08:00
Kubernetes Prow Robot
a63446d5c7
Merge pull request #80669 from oomichi/dig-predicates
Add message which shows how much CPU used
2019-07-26 23:23:57 -07:00
Kubernetes Prow Robot
5e7c707e3c
Merge pull request #80662 from BenTheElder/fix-bazel
fix building test/e2e_node/ with bazel 0.28.1
2019-07-26 21:33:56 -07:00
Wei Huang
755a3112d8
[eps-priority] auto-gen files 2019-07-26 20:49:12 -07:00
Wei Huang
762a7113a7
EvenPodsSpread: optimize Priority logic 2019-07-26 20:49:12 -07:00
Wei Huang
26a45b2bd3
EvenPodsSpread: Benchmarking Priority function 2019-07-26 20:49:12 -07: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
3638fd5353
EvenPodsSpread: minor enhancement on printing out priority score 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
f25cc921e1
EvenPodsSpread: Core Priority logic 2019-07-26 20:48:05 -07:00
Wei Huang
eefc18a763
EvenPodsSpread: Define a new Priority 2019-07-26 20:48:05 -07:00
Kubernetes Prow Robot
9bae1bc568
Merge pull request #80648 from odinuge/kubeadm-upgrade-diff-err
Fix error handling issue in kubeadm upgrade diff
2019-07-26 20:16:48 -07:00
Kubernetes Prow Robot
44de947f0f
Merge pull request #80509 from mborsz/endpoints
Add simple pod updates batching to endpoint controller.
2019-07-26 20:16:36 -07:00
Kubernetes Prow Robot
bc8ca12c87
Merge pull request #80448 from tedyu/node-info-key
Check error return from GetPodKey
2019-07-26 20:16:23 -07:00
Kubernetes Prow Robot
7075853a70
Merge pull request #80254 from hex108/preempt_with_permit
Send a reject message to permit plugin when preempting a WaitingPod
2019-07-26 20:16:11 -07:00
Kubernetes Prow Robot
6f8944aa54
Merge pull request #79696 from yittg/fix-pv-controller-affinity
fix pv-controller sync check node affinity for scheduled claim
2019-07-26 20:15:58 -07:00
Kenichi Omichi
c6c274e8c9 Add message which shows how much CPU used
"validates resource limits of pods that are allowed to run" test of
conformance tests are flake on some local environments.
The CPU workload pods don't seem work well and nodes have still CPU
capacity after running the workload pods. Then the conformance test
failed unexpectedly.
This adds message which shows how much CPU used by the workload pods
for investigating it easily.
2019-07-27 02:13:52 +00:00
Kubernetes Prow Robot
e298fc723f
Merge pull request #80635 from mborsz/patch-9
Retry metadata requests in get-credentials and valid-storage-scope
2019-07-26 16:52:48 -07:00
Kubernetes Prow Robot
52bf191b25
Merge pull request #80631 from justaugustus/releng-owners
build: Add Release Engineering OWNERS
2019-07-26 16:52:35 -07:00
Kubernetes Prow Robot
1d49cd141a
Merge pull request #80619 from SataQiu/fix-cloud-controller-manager
Follow up #80474: use correct format verb
2019-07-26 16:52:23 -07:00
Kubernetes Prow Robot
a300104f0a
Merge pull request #80578 from tsmetana/revert-pr78697
Revert "e2e: Skip multi-node PV test when pods scheduled on the same node
2019-07-26 16:52:10 -07:00
Kubernetes Prow Robot
78c5d34d35
Merge pull request #80552 from seans3/move-kubectl-describe
Move pkg/kubectl/describe to staging
2019-07-26 16:51:58 -07:00
Sean Sullivan
fb44be2d97 Move pkg/kubectl/version to staging 2019-07-26 15:48:09 -07:00
Benjamin Elder
4542cb937f fix building test/e2e_node/ with bazel 0.28.1 2019-07-26 14:32:40 -07:00
Kubernetes Prow Robot
368ee4bb8e
Merge pull request #79068 from tedyu/dc-skipped-pods
Remove unnecessary loop for lowering expectations
2019-07-26 14:01:59 -07:00
Kenichi Omichi
7ca57877b0 Fix error message of ListTargetHTTPSProxies
The error message of ListTargetHTTPSProxies operation contained
ListTargetHTTPProxies(HTTP instead of HTTPS) wrongly.
This fixes it.
2019-07-26 20:25:11 +00:00
Ryan Phillips
2bdf975d5b kubelet: add UID to kubelet_container_log_filesystem_used_bytes metric
buildPodRef creates a unique key with the {podName, namespace, UID}
tuple. By omitting the UID in the metric, duplicate metrics can be sent
to prometheus causing 500's on the /metrics endpoint.
2019-07-26 14:59:43 -05:00
Kirill Shirinkin
5e9da75df2 Allow aggregate-to-view roles to get jobs status (#77866)
* Allow aggregate-to-edit roles to get jobs status

Right now users/accounts with role `admin` or `edit` can create, update and delete jobs, but are not allowed to pull the status of a job that they create.  This change extends `aggregate-to-edit` rules to include `jobs/status`.

* Move jobs/status to aggregate-to-view rules

* Add aggregate-to-view policy to view PVCs status

* Update fixtures to include new read permissions

* Add more status subresources

* Update cluster-roles.yaml

* Re-order deployment permissions

* Run go fmt

* Add more permissions

* Fix tests

* Re-order permissions in test data

* Automatically update yamls
2019-07-26 11:59:22 -07:00
Ted Yu
47ccb69907 Check error return from GetPodKey 2019-07-26 11:53:43 -07:00
Sean Sullivan
49f5b423cf Move pkg/kubectl/describe to staging 2019-07-26 10:41:49 -07:00
Kubernetes Prow Robot
2c2ca27bfc
Merge pull request #80630 from mborsz/patch-8
Bump kube-addon-manager's version to v9.0.2
2019-07-26 09:56:51 -07:00
Kubernetes Prow Robot
614544f2cf
Merge pull request #80608 from seans3/move-kubectl-bindata
Moves pkg/kubectl/util/i18n to staging
2019-07-26 09:56:38 -07:00
Kubernetes Prow Robot
8f1eeacb78
Merge pull request #80573 from bart0sh/PR0075-kubeadm-handle-ResetClusterStatusForNode-errors
kubeadm: handle ResetClusterStatusForNode errors
2019-07-26 09:56:25 -07:00
Kubernetes Prow Robot
75e7e974d3
Merge pull request #80524 from ethan-daocloud/patch-5
cleanup: log message typo fix
2019-07-26 09:56:12 -07:00
Kubernetes Prow Robot
688f567698
Merge pull request #80307 from bart0sh/PR0073-kubeadm-remove-pkg-kubeapiserver-authorizer-modes-dependency
kubeadm: remove dependency on pkg/kubeapiserver/authorizer/modes
2019-07-26 09:55:59 -07:00
Odin Ugedal
2522e782dd Fix error handling issue in kubeadm upgrade
The error was unintentionally set inside the scope of the if statement,
hiding possible errors.
2019-07-26 18:51:29 +02:00
Kubernetes Prow Robot
ee84c95bdb
Merge pull request #80634 from aojea/translatev4v6
Don´t translate to IPv6 empty addresses
2019-07-26 08:06:12 -07:00
Kubernetes Prow Robot
2c17bc39cb
Merge pull request #80617 from SataQiu/cleanup-e2e_kubeadm
e2e_kubeadm: clean up non-recommended import
2019-07-26 08:05:59 -07:00
Jordan Liggitt
2e6440fbeb Avoid echoing request URL in proxy error 2019-07-26 10:40:17 -04:00
Stephen Augustus
081dd8154b build: Add Release Engineering OWNERS
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2019-07-26 09:59:26 -04:00
Kevin Klues
9f36f1a173 Add tests for proactive init Container removal in the CPUManager static policy 2019-07-26 14:34:51 +02:00
Kevin Klues
6a7db380de Add tests for new containertMap type in the CPUManager 2019-07-26 14:34:51 +02:00
Kevin Klues
c6d9bbcb74 Proactively remove init Containers in CPUManager static policy
This patch fixes a bug in the CPUManager, whereby it doesn't honor the
"effective requests/limits" of a Pod as defined by:

    https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#resources

The rule states that a Pod’s "effective request/limit" for a resource
should be the larger of:
    * The highest of any particular resource request or limit
      defined on all init Containers
    * The sum of all app Containers request/limit for a
      resource

Moreover, the rule states that:
    * The effective QoS tier is the same for init Containers
      and app containers alike

This means that the resource requests of init Containers and app
Containers should be able to overlap, such that the larger of the two
becomes the "effective resource request/limit" for the Pod. Likewise,
if a QoS tier of "Guaranteed" is determined for the Pod, then both init
Containers and app Containers should run in this tier.

In its current implementation, the CPU manager honors the effective QoS
tier for both init and app containers, but doesn't honor the "effective
request/limit" correctly.

Instead, it treats the "effective request/limit" as:
    * The sum of all init Containers plus the sum of all app
      Containers request/limit for a resource

It does this by not proactively removing the CPUs given to previous init
containers when new containers are being created. In the worst case,
this causes the CPUManager to give non-overlapping CPUs to all
containers (whether init or app) in the "Guaranteed" QoS tier before any
of the containers in the Pod actually start.

This effectively blocks these Pods from running if the total number of
CPUs being requested across init and app Containers goes beyond the
limits of the system.

This patch fixes this problem by updating the CPUManager static policy
so that it proactively removes any guaranteed CPUs it has granted to
init Containers before allocating CPUs to app containers. Since all init
container are run sequentially, it also makes sure this proactive
removal happens for previous init containers when allocating CPUs to
later ones.
2019-07-26 14:34:51 +02:00
Kubernetes Prow Robot
78915a1094
Merge pull request #80624 from xuto2/master
Bug fix: set enableTcpReset to true for Azure SLB load balancer rules
2019-07-26 05:32:16 -07:00