Commit Graph

35479 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
320bc21dbe Merge pull request #78762 from klueska/upstream-inherit-cpus-from-init-containers
Proactively remove init Containers in CPUManager static policy
2019-07-30 03:35:18 -07:00
Kubernetes Prow Robot
acfeb8a05e Merge pull request #78675 from hex108/bug_fix
Fix error case for ExtractFieldPathAsString
2019-07-30 03:35:04 -07:00
Kubernetes Prow Robot
bd6eaa5e7f Merge pull request #79956 from johnharris85/logs-error-typo
Fix 'concurrency' logs typo
2019-07-30 01:59:43 -07:00
Kubernetes Prow Robot
70bb26f96e Merge pull request #78632 from NickrenREN/delete-pod-if-add-succeeds
Delete the pods from unschedulable queue only when Add succeeds
2019-07-30 01:58:50 -07:00
Kubernetes Prow Robot
b120bc7e33 Merge pull request #80606 from andrewsykim/cloud-config-api
document API guarentees and deprecation policies for cloud config files
2019-07-29 19:54:50 -07:00
Sean Sullivan
6c96a059dd Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-29 13:08:41 -07:00
Kubernetes Prow Robot
af2e78a77f Merge pull request #80688 from silenceshell/patch-1
kube-proxy in ipvs mode use ipvs to redirect traffic
2019-07-29 08:08:08 -07:00
Kubernetes Prow Robot
a78cd38532 Merge pull request #80695 from seans3/move-apply-staging
Move pkg/kubectl/apply and subdirectories to staging
2019-07-29 06:44:05 -07:00
Kubernetes Prow Robot
ad74887b30 Merge pull request #80652 from seans3/remove-kubectl-util
Remove final file from pkg/kubectl/util
2019-07-29 06:43:53 -07:00
Kubernetes Prow Robot
f18833ee58 Merge pull request #80429 from gaorong/expose-node-lease-renewal-frequency
kubelet: change node-lease-renew-interval to 0.25 of lease-renew-duration
2019-07-29 02:29:56 -07:00
Rong Gao
cda783699b change node-lease-renew-interval to 0.25 of renew-duration
0.25 is a dedicated value to align before default value
of renew-interval but get more heuristic interval
2019-07-29 15:02:11 +08:00
Sean Sullivan
d730567a74 Move pkg/kubectl/apply and subdirectories to staging 2019-07-28 19:05:48 -07:00
silenceshell
c31a2b7076 kube-proxy in ipvs mode use ipvs to redirect traffic
fix the comment.
2019-07-28 21:36:02 +08:00
NickrenREN
315f34bb51 delete the pods from unschedulable queue only when Add succeeds 2019-07-28 11:24:11 +08:00
Sean Sullivan
738101f1ad Remove final file from pkg/kubectl/util 2019-07-27 16:36:57 -07:00
Sean Sullivan
7a64a66d61 Move pkg/kubectl/cmd/util/openapi to staging 2019-07-27 16:18:37 -07:00
Kubernetes Prow Robot
23649560c0 Merge pull request #80301 from klueska/upstream-rename-topologymanager-preferred-best-effort
Rename 'preferred' TopologyManager policy to 'best-effort'
2019-07-27 09:25:56 -07:00
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
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
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
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
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
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
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
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
d5d6061c8e Merge pull request #80476 from matte21/fix-pvcs-leaks
PVC protection controller: fix PVC leaks
2019-07-26 05:31:59 -07:00
Kubernetes Prow Robot
de73f62336 Merge pull request #80495 from adityadani/update_openstorage_to_v1.0.0
pkg/volume/portworx: Update vendor for libopenstorage/openstorage to v1.0.0
2019-07-26 03:23:59 -07:00
matte21
b4fed83a4a PVC protection controller: get rid of PVC leaks
Make the PVC protection controller robust to cases where a Pod X is deleted,
then a Pod Y with the same namespaced name is created and the two events are
delivered via a single update notification. Both pods should be processed,
because X might be blocking deletion of a PVC which is not referenced by Y.
Prior to this commit only the newer pod is processed, which means that it
is possible to leak PVCs.

Also, add unit tests to reflect the change.
2019-07-26 11:17:17 +02:00
Yi Tang
8c13f9dea3 fix pv controller not find pv for pvc provisioning 2019-07-26 16:24:30 +08:00
Kubernetes Prow Robot
b72077410b Merge pull request #80520 from ethan-daocloud/patch-2
fix wrong spells in events.go
2019-07-26 00:04:00 -07:00
Sean Sullivan
70984d8385 Moves pkg/kubectl/util/i18n to staging 2019-07-25 23:09:34 -07:00
Kubernetes Prow Robot
6fc8a01544 Merge pull request #80562 from seans3/move-drain-staging
Move pkg/kubectl/drain to staging
2019-07-25 22:36:24 -07:00
Kubernetes Prow Robot
b234dd06aa Merge pull request #80548 from seans3/move-kubectl-history
Move some pkg/kubectl into polymorphichelpers
2019-07-25 20:48:49 -07:00
Kubernetes Prow Robot
1a95199311 Merge pull request #80518 from jsafrane/cinder-detach-idempotent
Fix detachment of deleted volumes
2019-07-25 20:48:24 -07:00
Kubernetes Prow Robot
50a0d38e3a Merge pull request #80503 from tedyu/spread-constaints
Refactor nested loop in getTPMapMatchingSpreadConstraints
2019-07-25 20:48:11 -07:00
Kubernetes Prow Robot
a3750501b0 Merge pull request #79983 from pohly/persistent-and-ephemeral-csi-volumes
persistent and ephemeral csi volumes
2019-07-25 16:01:54 -07:00