Patrick Ohly
158d70aeff
features: CSIStorageCapacity
...
This will cover all extensions required for tracking of storage
capacity that is provided by CSI drivers.
2020-07-03 13:24:01 +02:00
Dave Chen
3e65fe4378
Change the exception to avoid the cost of preemption
...
node's labels doesn't contain the required topologyKeys in `Constraints`
cannot be resolved by preempting the pods on that pods.
One use case that could easily reproduce the issue is,
- set `alwaysCheckAllPredicates` to true.
- one node contains all the required topologyKeys but is failed in predicates
such as 'taint'.
- another node doesn't hold all the required topologyKeys, and thus return `Unschedulable`
status code.
- scheduler will try to preempt the pods on the above node with lower priorities.
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-07-03 10:17:31 +08:00
He Jie Xu
b3741f344e
The Pod is eligible to preempt when previous nominanted node is UnschedulableAndUnresolvable
...
If the Pod's previous nominated node is UnschedulableAndUnresolvable from previous
filtering, it should be considered for preemption again.
2020-07-03 08:57:45 +08:00
Kevin Klues
a780ccff5b
Updates logic in devicesToAllocate() to call GetPreferredAllocation()
2020-07-02 22:07:27 +00:00
Kevin Klues
bb56a09133
Add callGetPreferredAllocationIfAvailable() function in devicemanager
...
This function mimics what is already done for the conditional call to
PreStartContainer() via the callPreStartContainerIfNeeded() function.
2020-07-02 22:07:27 +00:00
Kubernetes Prow Robot
47a9952337
Merge pull request #86968 from gnufied/add-extra-csi-fields
...
Add extra fields in node expansion CSI call
2020-07-02 15:06:47 -07:00
Andrew Sy Kim
de2ecd7e2f
proxier/ipvs: check already binded addresses in the IPVS dummy interface
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
Co-authored-by: Laurent Bernaille <laurent.bernaille@gmail.com>
2020-07-02 15:32:21 -04:00
Chelsey Chen
ade2422883
Switch event recorder to use events.k8s.io/v1
2020-07-02 14:50:41 -04:00
Kevin Klues
abf87c99c6
Add GetPreferredAllocation() as a supported device plugin endpoint
2020-07-02 15:15:50 +00:00
Kevin Klues
32c047a52e
Update device plugin stub with new GetPreferredAllocation() call
2020-07-02 15:15:48 +00:00
Kevin Klues
c45f1317eb
Fix some whitespacing and comments in devicemanager
2020-07-02 15:15:44 +00:00
Kubernetes Prow Robot
7f78c330c0
Merge pull request #92421 from wawa0210/deployment-staticcheck
...
fix pkg/controller/deployment staticcheck
2020-07-02 06:41:29 -07:00
Kubernetes Prow Robot
13a4a71e99
Merge pull request #91532 from afrouzMashaykhi/log-flag-kubelet
...
add --logging-format flag to kubelet
2020-07-02 06:40:46 -07:00
Kubernetes Prow Robot
e37c04bd7c
Merge pull request #92684 from cofyc/volume-scheduling-cleanup
...
cleanup in volume scheduling
2020-07-02 04:17:38 -07:00
Kubernetes Prow Robot
15a9430ae5
Merge pull request #92650 from ahg-g/ahg-attempts
...
breakdown PodSchedulingDuration by number of attempts
2020-07-02 04:17:15 -07:00
Kubernetes Prow Robot
1b871091b9
Merge pull request #91645 from chelseychen/event-api
...
Promote new Event API to v1
2020-07-02 04:16:46 -07:00
wawa0210
444cdc2944
fix pkg/controller/nodeipam staticcheck
2020-07-02 18:32:13 +08:00
Kubernetes Prow Robot
a138be8722
Merge pull request #92686 from pohly/csi-ephemeral-volumes-beta
...
CSI ephemeral volumes: documentation and owner update
2020-07-01 23:14:37 -07:00
Kubernetes Prow Robot
f7a13de36c
Merge pull request #92667 from liggitt/admission-warnings
...
Admission webhook warnings
2020-07-01 23:14:17 -07:00
Kubernetes Prow Robot
94e1c54735
Merge pull request #92655 from BenTheElder/cleanup-some-owners
...
Cleanup some owners
2020-07-01 23:14:08 -07:00
Kubernetes Prow Robot
4d0ce2e708
Merge pull request #92584 from aojea/ipvsfix
...
IPVS: kubelet, kube-proxy: unmark packets before masquerading …
2020-07-01 23:13:57 -07:00
Kubernetes Prow Robot
6c917e6e48
Merge pull request #92571 from Huang-Wei/postfilter-impl-5
...
Polish unit tests of defaultpreemptio plugin
2020-07-01 23:13:47 -07:00
Kubernetes Prow Robot
406671910a
Merge pull request #92415 from wawa0210/statefulset-staticcheck
...
fix pkg/controller/statefulset staticcheck
2020-07-01 23:12:58 -07:00
Kubernetes Prow Robot
ce5c89a144
Merge pull request #91896 from aojea/bumpcni
...
bump cni library version to v0.8.0
2020-07-01 23:12:16 -07:00
Kubernetes Prow Robot
8623c26150
Merge pull request #90909 from kumarvin123/feature/WindowsEpSlices
...
EndPointSlices implementation for Windows
2020-07-01 23:12:01 -07:00
Dave Chen
41fd19760e
Fix the nits found in the testcases of PodTopologySpread
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-07-02 12:37:46 +08:00
Yuiko Mori
97bca0ec59
Add Deprecated description to metrics scheduling_duration_seconds
2020-07-02 00:14:49 +00:00
Kubernetes Prow Robot
07586f67d9
Merge pull request #91311 from robscott/endpointslice-garbage-collection
...
Fixing race condition with EndpointSlice controller garbage collection
2020-07-01 16:22:00 -07:00
Abdullah Gharaibeh
d1ea49bcd9
breakdown PodSchedulingDuration by number of attempts
2020-07-01 17:34:07 -04:00
Rob Scott
3f593710a7
Ensuring EndpointSlice controller does not create EndpointSlices for Services that are being deleted.
...
This should ensure that the controller does not conflict with garbage collection.
2020-07-01 12:45:49 -07:00
amash
b92b04e7cd
add default for loggingconfiguration struct
2020-07-01 22:28:27 +04:30
Hemant Kumar
6342dad709
Ensure that StagingPath is supplied to blockVolume expansion
2020-07-01 12:21:17 -04:00
Jordan Liggitt
03d322035d
Generated code
...
Change-Id: I974a2cddc090fcb645b982959e06415a951b8f15
2020-07-01 12:14:06 -04:00
Jordan Liggitt
5eef60a00a
Add warnings capability for admission webhooks
2020-07-01 12:14:06 -04:00
Antonio Ojea
6f79600e73
bump cni library version to v0.8.0
...
last CNI library release is 0.7.1 from Jun 11, 2019.
Since then, there was introduced new feature and bugfixes.
Currently, this library is only being used by dockershim,
the other CRI plugins are vendoring it directly
However, this will help also to mitigate some of the issues with the
CI jobs that are still using dockershim.
Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-07-01 18:09:19 +02:00
amash
3ab25f1876
add LoggingConfiguration struct to component-base/config
2020-07-01 20:07:01 +04:30
amash
ac8d2e8978
add loggingConfig struct to kubelet config
2020-07-01 20:07:01 +04:30
amash
ba8189a4f2
add --logging-format flag to kubelet
2020-07-01 20:07:01 +04:30
Hemant Kumar
69613da0ae
rename volumeid to volumeID
2020-07-01 11:34:31 -04:00
Hemant Kumar
75e13e370e
Supply staging path for block expansion
2020-07-01 11:34:31 -04:00
Hemant Kumar
7d6959ce2c
Add extra fields in node expansion CSI call
2020-07-01 11:34:31 -04:00
Chelsey Chen
c90330d8f4
Auto generated changes
2020-07-01 10:50:34 -04:00
Chelsey Chen
75612c1746
Promote new Event API to v1
2020-07-01 10:50:28 -04:00
Kubernetes Prow Robot
2e91b56af0
Merge pull request #87909 from alena1108/feb6cleanup
...
Removed unnecessary not nil check in node registration process
2020-07-01 07:10:49 -07:00
Kubernetes Prow Robot
b1b1fc8034
Merge pull request #81961 from pohly/ephemeral-unit-tests
...
storage: enhance test for ValidateCSIDriverUpdate
2020-07-01 07:10:34 -07:00
Patrick Ohly
99b5b13394
CSI ephemeral volumes: documentation and owner update
...
The promotion to beta missed some code locations. The owner also
changed since the feature was initially designed and implemented.
The "is handled by an external CSI driver" to "by certain external CSI
drivers" change is supposed to avoid the misconception that this
volume type will work with arbitrary CSI drivers.
2020-07-01 09:19:18 +02:00
Antonio Ojea
c40081b550
kube-proxy ipvs masquerade hairpin traffic
...
Masquerade de traffic that loops back to the originator
before they hit the kubernetes-specific postrouting rules
Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-07-01 09:16:19 +02:00
Kubernetes Prow Robot
1a80caef4a
Merge pull request #91357 from aojea/proxyFamily
...
kube-proxy should infer the service IP family from the ClusterIP field
2020-07-01 00:06:06 -07:00
Yecheng Fu
2cdc63aeaa
cleanup in volume scheduling pkg
...
- remove duplicated function claimToClaimKey
- cache Lister
- don't add indexer for PVCAssumeCache
2020-07-01 15:01:10 +08:00
Kubernetes Prow Robot
180af4240c
Merge pull request #90288 from aojea/cidrsets
...
Add metrics to the cidr_sets used by the nodeipam range allocator
2020-06-30 19:24:06 -07:00
Benjamin Elder
d8f2b131b5
remove david-mcmahon from reviewers
2020-06-30 14:06:58 -07:00
Wei Huang
7362fccdd7
Polish unit tests of defaultpreemptio plugin
2020-06-30 14:05:48 -07:00
Benjamin Elder
2abc8afece
eparis to emeritus
2020-06-30 09:50:44 -07:00
Benjamin Elder
960ef085e9
zmerlynn to emeritus
2020-06-30 09:43:59 -07:00
Antonio Ojea
c7a29774c9
kube-proxy dual-stack infers IP family from ClusterIP
...
when dual-stack kube-proxy infers the service IP family from
the ClusterIP because ipFamily field is going to be deprecated.
Since kube-proxy skip headless and externalname services we
can safely obtain the IPFamily from the ClusterIP field
Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-06-30 18:42:19 +02:00
Antonio Ojea
a46e1f0613
kube-proxy ShouldSkipService takes only one argument
...
instead of receiving the service name and namespace we
can obtain it from the service object directly.
Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2020-06-30 18:42:15 +02:00
Andrea Nodari
2e1042f959
Use NodeWrapper to directly initialize node with labels
...
Using NodeWrapper in the integration tests gives more flexibility when
creating nodes. For instance, tests can create nodes with labels or
with a specific sets of resources.
Also, NodeWrapper initialises a node with a capacity of 32 pods, which
can be overridden by the caller. This makes sure that a node is usable
as soon as it is created.
2020-06-30 17:18:15 +02:00
Kubernetes Prow Robot
dcdeed97cd
Merge pull request #91499 from lo24/intf-fix
...
fix a regression that TestValidateNodeIPParam never actually works
2020-06-30 02:52:05 -07:00
Kubernetes Prow Robot
1c658d2ae8
Merge pull request #92568 from satishbellapu/master
...
Typo of PercentageOfNodesToScore
2020-06-30 00:03:25 -07:00
Alex Wang
209117413f
Promote NonPreempt feature gate to beta ( #91899 )
...
* update nonpreempt featuregate to beta
* update
2020-06-30 00:02:56 -07:00
Kubernetes Prow Robot
850080c41f
Merge pull request #91867 from yan-dblinf/fix_golint_failures_pkg_kubelet_lifecycle
...
Fix golint failures in pkg/kubelet/lifecycle
2020-06-30 00:02:42 -07:00
Kubernetes Prow Robot
2e12311d2e
Merge pull request #91606 from danwinship/service-ipallocator-cleanups
...
Service IPAllocator cleanups
2020-06-30 00:02:27 -07:00
Kubernetes Prow Robot
8a76c27b8d
Merge pull request #88573 from davidstack/master
...
the result value of functrion NodeIPS will contain the docker0 ip , update the comment
2020-06-30 00:01:59 -07:00
Kubernetes Prow Robot
784b0738b5
Merge pull request #92578 from zhouya0/fix_preemt_comment
...
Fix scheduler preemt function comment
2020-06-29 18:35:27 -07:00
Kubernetes Prow Robot
281023790f
Merge pull request #92501 from rakeshreddybandi/rename-plugin
...
Rename DefaultPodTopologySpread plugin #91994
2020-06-29 18:34:58 -07:00
Kubernetes Prow Robot
c664611f5a
Merge pull request #92462 from Haleygo/vspherevolume-staticcheck
...
fix pkg/volume/vspherevolume static check
2020-06-29 18:34:49 -07:00
Kubernetes Prow Robot
a5b0e44196
Merge pull request #92440 from luigibk/ebtables-broutetable-and-deleterule
...
Add ebtables rule delete function + broute table + brouting chain
2020-06-29 18:34:26 -07:00
Kubernetes Prow Robot
677dfbab3c
Merge pull request #91360 from liuxu623/fix-emptyDir-sizeLimit
...
Fix if don't set ephemeral-storage limit emptyDir's sizeLimit doesn't work
2020-06-29 18:33:58 -07:00
Vinod K L Swamy
bbd4a07dec
Changes to WinKernel to support EndpointSlices
2020-06-29 14:31:15 -07:00
Vinod K L Swamy
4505d5b182
Changes to Proxy common code
2020-06-29 14:29:46 -07:00
Damon Wang
b199dd8ee1
update the comment of NodeIPs function
2020-06-29 15:29:16 +08:00
zhouya0
59f9a7d81e
Fix preemt function comment
2020-06-28 18:29:55 +08:00
Kubernetes Prow Robot
4fc5c1eda2
Merge pull request #92391 from adtac/adtac/reserve-failure
...
scheduler: run Unreserve if Reserve fails
2020-06-27 16:04:14 -07:00
RAKESH REDDY BANDI
d44a20f9ca
Rename DefaultPodTopologySpread plugin #91994
2020-06-27 13:46:31 -04:00
Kubernetes Prow Robot
ad29e168dc
Merge pull request #92108 from Huang-Wei/postfilter-impl-4
...
[postfilter-impl-4] Move Preempt() to defaultpreemption package.
2020-06-27 09:02:15 -07:00
satishbellapu
f92072b60b
Typo of PercentageOfNodesToScore
...
Corrected typos PercentageOfNodeToScore -> PercentageOfNodesToScore
2020-06-27 02:33:19 -07:00
Kubernetes Prow Robot
27aca3f7c2
Merge pull request #91505 from jpbetz/rv-semantics
...
Consistent Resource Version Semantics for List
2020-06-27 02:26:17 -07:00
Adhityaa Chandrasekar
1b223b861a
scheduler: run Unreserve if Reserve fails
...
If a reserve plugin's Reserve method returns an error, there could be
previously allocated resources from successfully completed reserve
plugins that must be unallocated by the corresponding Unreserve
operation. Since Unreserve operations are idempotent, this patch runs
the Unreserve operation of ALL reserve plugins when a Reserve operation
fails.
2020-06-26 20:41:33 +00:00
haleygo
d6cf8d3e57
update static check failed from pkg/volume/rbd
...
remove field from staticcheck_failures
2020-06-27 02:21:51 +08:00
haleygo
a5b7ce1bfd
fix static check failed from pkg/volume/vspherevolume
...
remove field from staticcheck_failures
2020-06-27 02:03:13 +08:00
Kubernetes Prow Robot
a730ad56b9
Merge pull request #92345 from brianpursley/unmount-handle-not-found
...
Make unmount device log warning and continue if mount path is not found
2020-06-26 04:17:45 -07:00
Kubernetes Prow Robot
a03db636da
Merge pull request #91366 from giuseppe/cgroupfs-cgroupv2
...
vendor: update google/cadvisor and opencontainers/runc
2020-06-26 04:17:31 -07:00
Kubernetes Prow Robot
30dbfbec84
Merge pull request #92367 from gongguan/instancev2
...
define and implement cloud InstanceV2
2020-06-26 00:07:45 -07:00
Joe Betz
e214f2408b
Add ResourceVersionMatch parameter to make Resource Version semantics consistent for list
2020-06-25 20:49:57 -07:00
Kubernetes Prow Robot
b3033da9a1
Merge pull request #92200 from adtac/adtac/reserve
...
scheduler: merge Reserve and Unreserve plugins
2020-06-25 19:57:31 -07:00
Wei Huang
058e3d4258
Move Preempt() and its related functions to defaultpreemption package
...
Refactor genericScheduler and signature of preemption funcs
- remove podNominator from genericScheduler
- simplify signature of preemption functions
Make Preempt() private
2020-06-25 12:33:51 -07:00
Kubernetes Prow Robot
62b091b77f
Merge pull request #92476 from Huang-Wei/pbd-bug
...
Fix a preemption bug when pods are listed in pdb.Status.DisruptedPods
2020-06-25 09:46:08 -07:00
Kubernetes Prow Robot
14c69640d0
Merge pull request #87166 from jingxu97/Jan/mountcheckfix
...
Fix issue in kubelet getMountedVolumePathListFromDisk
2020-06-25 09:45:39 -07:00
wawa0210
d360be0f7c
fix pkg/controller/statefulset staticcheck
2020-06-26 00:00:41 +08:00
Kubernetes Prow Robot
4a91ecb976
Merge pull request #91863 from knabben/kubelet-memcg-notification
...
Moving Kubelet kernel-memgc-notification to configuration file
2020-06-25 00:20:37 -07:00
gongguan
22e083f132
implement instancesV2
2020-06-25 11:15:57 +08:00
Kubernetes Prow Robot
ad021a88b0
Merge pull request #92408 from BenTheElder/coverage-staticcheck
...
fix pkg/util/coverage staticcheck
2020-06-24 17:52:37 -07:00
Adhityaa Chandrasekar
ec83143342
scheduler: merge Reserve and Unreserve plugins
...
Previously, separate interfaces were defined for Reserve and Unreserve
plugins. However, in nearly all cases, a plugin that allocates a
resource using Reserve will likely want to register itself for Unreserve
as well in order to free the allocated resource at the end of a failed
scheduling/binding cycle. Having separate plugins for Reserve and
Unreserve also adds unnecessary config toil. To that end, this patch
aims to merge the two plugins into a single interface called a
ReservePlugin that requires implementing both the Reserve and Unreserve
methods.
2020-06-24 21:10:35 +00:00
Kubernetes Prow Robot
8adcd7978e
Merge pull request #92268 from alculquicondor/ext-point-profile
...
Add profile label to framework_extension_point_duration_seconds
2020-06-24 13:31:37 -07:00
Kubernetes Prow Robot
c6d2b223fb
Merge pull request #92222 from cofyc/fix92186
...
Share pod volume binding cache via framework.CycleState
2020-06-24 13:31:21 -07:00
Kubernetes Prow Robot
00cf315f3c
Merge pull request #92006 from zshihang/master
...
allow projected in psp when secret is allowed and boundedserviceaccounttoken is enabled
2020-06-24 13:30:52 -07:00
Kubernetes Prow Robot
9a3276548b
Merge pull request #91956 from kinvolk/rata/fix-kubelet-log-on-kill
...
kubelet: Fix log typo when killing a container
2020-06-24 13:30:38 -07:00
Wei Huang
82ab6db94b
Pods in pdb.Status.DisruptedPods are treated as 'nonViolating' in any case
2020-06-24 11:22:31 -07:00
Wei Huang
488621815f
Fix a preemption bug when pods are matched by pdb.Status.DisruptedPods
2020-06-24 11:22:31 -07:00
Kubernetes Prow Robot
b0e974e1aa
Merge pull request #92239 from matthyx/more-tests
...
Add tests covering startup probe without readiness
2020-06-24 10:32:13 -07:00
Kubernetes Prow Robot
67afc8ea3c
Merge pull request #91625 from pancernik/v1beta1-extender-encoding
...
Fix API encoding inconsistencies in KubeSchedulerConfig
2020-06-24 10:31:58 -07:00
Giuseppe Scrivano
5d6dc8d19c
cadvisor: add Disk metrics with LocalStorageCapacityIsolation
...
needed for cadvisor commit e3affc1b79faa2901d7210948e92a5416166eb28
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-24 18:39:52 +02:00
Giuseppe Scrivano
e94aebf4cb
pkg/kubelet: adapt to new libcontainer API
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-24 18:39:51 +02:00
Shihang Zhang
613a712717
default to add projected fstype in psp when boundedserviceaccounttoken is enabled
2020-06-24 09:09:27 -07:00
Kubernetes Prow Robot
ef8380e6c0
Merge pull request #91317 from chendave/balancedallocation
...
Scheduler: remove the misleading comments in `NodeResourcesBalancedAllocation`
2020-06-24 08:55:17 -07:00
Brian Pursley
4cc4e774c6
Make unmount device log warning and continue if mount path is not found
2020-06-24 10:02:50 -04:00
Kubernetes Prow Robot
14d9b5d758
Merge pull request #92325 from brianpursley/sync-pod-log
...
Add pod and container name in log message when container fails to start
2020-06-24 04:55:18 -07:00
Amim Knabben
c39cf28ed3
Moving Kubelet kernel-memgc-notification to configuration file
2020-06-24 06:44:00 -04:00
Kubernetes Prow Robot
f7b79c4ca4
Merge pull request #92407 from RainbowMango/pr_promlint_kubelet
...
change kubelet metrics name
2020-06-24 02:00:03 -07:00
Jeremy Olmsted-Thompson
daa27c9b2e
Clarify behavior of publishNotReadyAddresses ( #90783 )
...
* Clarify behavior of publishNotReadyAddresses
* gen docs after clarifying publishNotReadyAddresses
2020-06-24 01:59:18 -07:00
Rafal Wicha
d7c84e11f5
Fix API encoding inconsistencies in KubeSchedulerConfig
2020-06-24 09:03:35 +01:00
Yecheng Fu
f899976b41
fixup
2020-06-24 14:14:03 +08:00
Benjamin Elder
d1ec9b3f9c
fix pkg/util/coverage staticcheck
2020-06-23 18:30:32 -07:00
Jing Xu
b8ee3d2782
Replace evalSymlink() with powershell command for subPath_windows.go
...
In golang, evalSymlink() does not work if windows disk driver letter is
not assigned. Replace this function with a powershell command to work
around this issue.
2020-06-23 13:35:30 -07:00
Aldo Culquicondor
698eda3079
Add profile label to scheduler extension point metrics
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-06-23 15:30:22 -04:00
Brian Pursley
2afc8e0eab
Add pod and container name in log message when container fails to start
2020-06-23 12:59:53 -04:00
Yecheng Fu
22d874993c
build files
2020-06-23 22:18:33 +08:00
Yecheng Fu
4627b419b4
tests only
2020-06-23 22:18:33 +08:00
Yecheng Fu
ee4d7410be
Share pod volume binding cache via framework.CycleState
2020-06-23 22:18:33 +08:00
wawa0210
7d8aae51df
fix pkg/controller/deployment staticcheck
2020-06-23 19:32:20 +08:00
Kubernetes Prow Robot
db8a88721e
Merge pull request #81742 from praseodym/fix-staticcheck-pkg/registry
...
Fix staticcheck failures for pkg/registry/...
2020-06-23 02:55:41 -07:00
Dave Chen
e1d61b621a
Scheduler: remove the misleading comments in NodeResourcesBalancedAllocation
...
Signed-off-by: Dave Chen dave.chen@arm.com
2020-06-23 17:33:02 +08:00
RainbowMango
168c695e1a
Update two metrics name to make promlint happy.
2020-06-23 15:16:18 +08:00
Kubernetes Prow Robot
83a15867b1
Merge pull request #92049 from Huang-Wei/postfilter-impl-3
...
[postfilter-impl-3] Register and enable the defaultpreemption plugin
2020-06-22 23:53:54 -07:00
Kubernetes Prow Robot
00d6255f44
Merge pull request #91712 from KobayashiD27/structured-logging-in-event
...
Migrate log to klog.InfoS for staging/src/k8s.io/client-go
2020-06-22 23:53:40 -07:00
Kubernetes Prow Robot
981f6751f8
Merge pull request #92330 from andyzhangx/msi-cred-issue
...
fix: don't use docker config cache if it's empty
2020-06-22 22:00:19 -07:00
Kubernetes Prow Robot
79a7088340
Merge pull request #92202 from alculquicondor/profile-metrics
...
Add profile label to schedule_attempts_total metric and e2e_scheduling_duration_seconds
2020-06-22 22:00:10 -07:00
Kubernetes Prow Robot
819ad44c90
Merge pull request #91603 from pancernik/v1beta1-requested-to-cap-ratio-encoding
...
Configure strict encoding for RequestedToCapacityRatioArgs
2020-06-22 21:59:41 -07:00
Wei Huang
d99cc01646
Register and enable defaultpreemption plugin
...
- Enable defaultpreemption as a PostFilter plugin
- Remote legacy hard-coded preemption logic
2020-06-22 17:22:27 -07:00
Kubernetes Prow Robot
6316f4f582
Merge pull request #92339 from fatkun/fixed_on_endpointslice_update
...
Fix bug that use obj as prev obj in endpoint slice update
2020-06-22 15:02:34 -07:00
Aldo Culquicondor
eb9711dc1f
Add profile label to schedule_attempts_total metric
...
and e2e_scheduling_duration_seconds
Also adding result label to e2e_scheduling_duration_seconds. Previously, the metric was only updated for successful attempts
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-06-22 15:19:57 -04:00
Jing Xu
7012994a61
Fix issue in kubelet getMountedVolumePathListFromDisk
...
This PR fixes issue #74650 . It adds the extra check for /mount dir under
pod volume dir. It also adds the unit test for this function
2020-06-22 10:00:43 -07:00
andyzhangx
fe873af660
fix: don't use docker config cache if it's empty
...
add one comment
test: add unit test
fix comments
fix comments
revert test change
fix comments
2020-06-22 15:10:47 +00:00
Kubernetes Prow Robot
8815a1da59
Merge pull request #91776 from farah/master
...
Split scheduler framework implementation into new runtime package
2020-06-22 06:16:39 -07:00
Kubernetes Prow Robot
27687161d9
Merge pull request #92356 from andyzhangx/azuredisk-tags
...
add tags support for azure disk driver
2020-06-22 04:26:39 -07:00
Luigi Bitonti
51f788c6dc
Add ebtables rule delete function + broute table + brouting chain
2020-06-22 09:07:29 +01:00
Kubernetes Prow Robot
0c571629ab
Merge pull request #92336 from andyzhangx/azurefile-protocol
...
add azurefile protocol parameter in azure cloud provider lib
2020-06-21 22:22:39 -07:00
Kobayashi Daisuke
4ecbec75a6
Run update-bazel.sh
2020-06-22 10:49:15 +09:00
Kubernetes Prow Robot
656a01fb04
Merge pull request #90592 from bart0sh/PR0089-promote-HugePageStorageMediumSize-to-Beta
...
Promote HugePageStorageMediumSize feature to Beta
2020-06-21 11:00:38 -07:00
Mark Janssen
e3a0ca2731
Fix staticcheck failures for pkg/registry/...
...
Errors from staticcheck:
pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go:207:7: this value of err is never used (SA4006)
pkg/registry/core/namespace/storage/storage.go:256:5: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional (SA1019)
pkg/registry/core/namespace/storage/storage.go:257:11: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional (SA1019)
pkg/registry/core/namespace/storage/storage.go:266:5: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional (SA1019)
pkg/registry/core/namespace/storage/storage.go:267:11: options.OrphanDependents is deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional (SA1019)
pkg/registry/core/persistentvolumeclaim/storage/storage_test.go:165:2: this value of err is never used (SA4006)
pkg/registry/core/resourcequota/storage/storage_test.go:202:7: this value of err is never used (SA4006)
pkg/registry/core/service/ipallocator/allocator_test.go:338:2: this value of other is never used (SA4006)
pkg/registry/core/service/portallocator/allocator_test.go:199:2: this value of other is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:1843:2: this value of location is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:1849:2: this value of location is never used (SA4006)
pkg/registry/core/service/storage/rest_test.go:3174:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3178:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3185:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
pkg/registry/core/service/storage/rest_test.go:3189:20: use net.IP.Equal to compare net.IPs, not bytes.Equal (SA1021)
2020-06-21 17:23:42 +02:00
Ali Farah
a22e115a0e
Split scheduler framework implementation into new runtime package
2020-06-22 00:23:43 +10:00
andyzhangx
9973b1cb5e
feat: add tags support for azure disk driver
...
merge tags map
2020-06-21 13:04:06 +00:00
fatkun
eb9bca5f06
Fixed a bug that mistake use newObj as oldObj in endpoint slice update
2020-06-21 16:43:12 +08:00
andyzhangx
42e378f86f
chore: add azure file protocol parameter
...
fix typo
fix e2e test failure
fix comments
2020-06-21 03:36:01 +00:00
Yan Yao
cef7876952
Fix golint failures in pkg/kubelet/lifecycle
...
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-06-20 18:44:54 -07:00
Kubernetes Prow Robot
e24a42f07b
Merge pull request #88268 from mattjmcnaughton/mattjmcnaughton/delete-image-manager-TODO
...
Delete TODO in `image_gc_manager`
2020-06-20 17:12:38 -07:00
Rodrigo Campos
82856541fb
kubelet: Fix log typo when killing a container
...
Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
2020-06-20 20:15:27 -03:00
Kubernetes Prow Robot
628102d038
Merge pull request #85390 from xiaoanyunfei/bugfix/plegTestRelisting
...
fix pleg TestRelisting
2020-06-20 14:40:38 -07:00
Kubernetes Prow Robot
70302466f4
Merge pull request #92331 from andyzhangx/max-azure-datadisk
...
fix: incorrect max azure disk max count
2020-06-20 05:27:16 -07:00
Kubernetes Prow Robot
86ad0df820
Merge pull request #92203 from sjenning/add-sjenning-node-approver
...
Add sjenning as kubelet approver
2020-06-19 21:52:02 -07:00
Kubernetes Prow Robot
5ed7b1afb8
Merge pull request #92012 from Huang-Wei/postfilter-impl-2
...
[postfilter-impl-2] Introduce a defaultpreemption PostFilter plugin
2020-06-19 21:51:42 -07:00
Kubernetes Prow Robot
3b466d1c48
Merge pull request #91971 from SergeyKanzhelev/renamesInContainer
...
fix linter issues for pkg/kubelet/container
2020-06-19 21:51:32 -07:00
Kubernetes Prow Robot
d81ff3864c
Merge pull request #91945 from zhipengzuo/master
...
add namespaces info for logPrefix
2020-06-19 21:51:22 -07:00
Kubernetes Prow Robot
86ab25f038
Merge pull request #91716 from kadisi/append_mutations_kubelet
...
fix unexpected append mutations about pkg/kubelet package
2020-06-19 21:51:08 -07:00
Kubernetes Prow Robot
9c3f648300
Merge pull request #91705 from mrkm4ntr/revert-assumed-in-unreserve
...
Revert assumed PVs and PVCs in unreserve extension point
2020-06-19 21:50:54 -07:00
Kubernetes Prow Robot
3d78928820
Merge pull request #91563 from SataQiu/fix-kubelet-20200529
...
Add duration to image pulling event
2020-06-19 21:50:39 -07:00
andyzhangx
b0cfc8f602
fix: update max azure disk max count
2020-06-20 03:25:53 +00:00
Kubernetes Prow Robot
5968bc4653
Merge pull request #92247 from chendave/skiptopology
...
Skip `PreScore` when the `TopologySpreadConstraints` is specified
2020-06-19 11:37:44 -07:00
Kubernetes Prow Robot
cd5cdd6efa
Merge pull request #92120 from farah/farah/fix-typo
...
Fix typo in util_linux.go
2020-06-19 11:37:03 -07:00
Kubernetes Prow Robot
907a526919
Merge pull request #91699 from twosigma/hostnamefqdn_kubelet
...
Allow setting FQDN in hostname
2020-06-19 11:36:29 -07:00
Seth Jennings
45d2b98aa8
add sjenning as kubelet approver
2020-06-19 13:00:55 -05:00
Wei Huang
196056d7fe
Introduce a defaultpreemption PostFilter plugin
...
- Add a defaultpreemption PostFilter plugin
- Make g.Preempt() stateless
- make g.Preempt() stateless
- make g.getLowerPriorityNominatedPods() stateless
- make g.processPreemptionWithExtenders() stateless
2020-06-19 09:13:55 -07:00
Kubernetes Prow Robot
be31023a95
Merge pull request #87155 from kolorful/patch-3
...
Fix a comment in job_controller
2020-06-19 08:51:58 -07:00
Sergey Kanzhelev
ee53488f19
fix golint issues in pkg/kubelet/container
2020-06-19 15:48:08 +00:00
Kubernetes Prow Robot
2f2923fc33
Merge pull request #86802 from Aresforchina/fix-staticcheck-test04
...
make kubelet sysctl constants private
2020-06-19 04:37:59 -07:00
Ed Bartosh
1540557dc1
Promote HugePageStorageMediumSize feature to Beta
2020-06-19 14:13:38 +03:00
Shintaro Murakami
79ab958996
Revert assumed PVs and PVCs in unreserve extension point
2020-06-19 17:39:42 +09:00
Kubernetes Prow Robot
677e8d6871
Merge pull request #86223 from dashpole/owners_changes
...
Add dashpole as kubelet approver
2020-06-18 22:59:58 -07:00
Kubernetes Prow Robot
65544c96d7
Merge pull request #91957 from cmluciano/cml/ingclassadmissionv1
...
ingress: Update IngressClass feature and admission controller for v1
2020-06-18 19:05:30 -07:00
Kubernetes Prow Robot
694566d06d
Merge pull request #91915 from tnozicka/fix-ds-recreate
...
Fix DS expectations on recreate
2020-06-18 19:05:11 -07:00
Kubernetes Prow Robot
342bcf55e8
Merge pull request #89937 from aojea/portAllocator2
...
portAllocator sync local data before allocate
2020-06-18 19:03:10 -07:00
Matthias Bertschy
681202abd0
Add tests covering startup probe without readiness
2020-06-18 22:13:20 +02:00
xiaofei.sun
ddf1c5d3e9
fix pleg TestRelisting
2020-06-18 21:46:55 +08:00
Kubernetes Prow Robot
f4e2cf7fdc
Merge pull request #92215 from chendave/declare
...
Explicitly declare the interfaces for extension points
2020-06-18 06:03:50 -07:00
Kubernetes Prow Robot
78b503d9f8
Merge pull request #92196 from thockin/startup-probe-blocks-readiness
...
Pods which have not "started" can not be "ready"
2020-06-18 06:03:11 -07:00
Kubernetes Prow Robot
2001383994
Merge pull request #92133 from knight42/refactor/move-kubectl-out
...
refactor: move kubectl-cp to staging
2020-06-18 06:02:05 -07:00
Dave Chen
068c69d743
Skip PreScore
when the TopologySpreadConstraints
is specified
...
`DefaultPodTopologySpread` need't score when the `TopologySpreadConstraints`
is specified.
`PreScore` needn't do this as well, this cut off the cost of `PreScore` if
possible.
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-06-18 18:01:56 +08:00
Jan Safranek
9a9c216825
iscsi: don't write json medata file when the volume is already mounted.
...
iSCSI volume plugin persists volume metadata into global mount directory,
before it is mounted. Content of the directory is shadowed by the volume
mount. Therefore kubelet should not write metadata to the directory when a
second pod uses the same volume on the same node.
1. The metadata were already persisted before mounting the volume for the
first pod.
2. The global mount directory has the volume mounted, so any write there
would write to the volume, which is undesirable.
2020-06-17 20:09:54 +02:00
Christopher M. Luciano
92506a98fc
ingress: Update IngressClass feature and admission controller for v1
...
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-06-17 12:11:31 -04:00
Tomas Nozicka
5cf3f8b79c
Fix DS expectations on recreate
2020-06-17 09:22:17 +02:00
Dave Chen
9ebd872e71
Explicitly declare the interfaces for extension points
...
This make it easier to catch the issue during the compilation, also,
this also align with other plugins, i.e. plugin of "InterPodAffinity".
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-06-17 15:11:44 +08:00
Kubernetes Prow Robot
53f3699cf9
Merge pull request #89778 from cmluciano/cml/ingressv1
...
ingress: Add Ingress to v1 API and update backend to defaultBackend
2020-06-16 23:10:39 -07:00
Tim Hockin
64d4254217
Pods which have not "started" can not be "ready"
...
Before this commit, containers which have both a `startupProbe` and a
`readinessProbe` are marked as `ready=false` during stratup, but
containers which have only a `startupProbe` are marked `ready=true`.
This doesn't make sense.
This commit only considers readiness if the container is considered to
have "started", which leaves `ready=false` while starting up.
2020-06-16 21:34:51 -07:00
Kubernetes Prow Robot
42cb4d5510
Merge pull request #92130 from chendave/InterPodAffinity_cleanup
...
cleanup: remove invalid comments in plugin of InterPodAffinity
2020-06-16 19:24:02 -07:00
Kubernetes Prow Robot
7e073db5e0
Merge pull request #91986 from denkensk/fix-pdb-preempt
...
Computing DisruptedPods of PDB in scheduling preemption
2020-06-16 19:23:03 -07:00
Kubernetes Prow Robot
a84784cbe5
Merge pull request #91730 from tnozicka/fix-sig-apps-owners
...
Add sig-apps-approvers and reviewers
2020-06-16 19:22:25 -07:00
Antonio Ojea
069707f75a
refactor and instrument range_allocator cidr_sets
...
refactor and add the following metrics to the cidr_sets used by the range
allocator:, under the subsystem: node_ipam_controller
cidrset_cidrs_allocations_total
cidrset_cidrs_releases_total
cidrset_usage_cidrs
cidrset_allocation_tries_per_request
2020-06-17 00:03:49 +02:00
Ali Farah
81b91563e4
Fix typo in util_linux.go
2020-06-17 02:04:15 +10:00
Kubernetes Prow Robot
73fa63a86d
Merge pull request #92035 from danwinship/unmark-before-masq
...
kubelet, kube-proxy: unmark packets before masquerading them
2020-06-16 00:50:03 -07:00
Dave Chen
8f0c329758
cleanup: update invalid comments in plugin of InterPodAffinity
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-06-16 14:11:59 +08:00
fatedier
3089411183
autogen files update
2020-06-16 12:02:29 +08:00
knight42
1b32dfdafd
refactor: move kubectl-cp to staging
...
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-06-16 11:53:22 +08:00
fatedier
6c2562a579
fix 68211: modified subpath configmap mount fails when container restart
2020-06-16 11:37:43 +08:00
Alex Wang
02e4060b1b
Computing DisruptedPods of PDB in scheduling preemption
2020-06-16 10:24:55 +08:00
Kubernetes Prow Robot
1c11ff7a26
Merge pull request #92107 from Huang-Wei/fake-artifacts-refactor
...
Move scheduler fake artifacts to pkg/scheduler/testing
2020-06-15 18:14:34 -07:00
Kubernetes Prow Robot
84799c47bf
Merge pull request #92009 from Huang-Wei/postfilter-impl-1
...
[postfilter-impl-1] Refactor scheduler preempt interface
2020-06-15 18:14:24 -07:00
Kubernetes Prow Robot
fbc78f53b7
Merge pull request #91590 from knight42/fix/repair-node-port
...
fix(service::repair): accept same nodePort with different protocols
2020-06-15 18:14:10 -07:00
Dan Winship
c12534d8b4
kubelet, kube-proxy: unmark packets before masquerading them
...
It seems that if you set the packet mark on a packet and then route
that packet through a kernel VXLAN interface, the VXLAN-encapsulated
packet will still have the mark from the original packet. Since our
NAT rules are based on the packet mark, this was causing us to
double-NAT some packets, which then triggered a kernel checksumming
bug. But even without the checksum bug, there are reasons to avoid
double-NATting, so fix the rules to unmark the packets before
masquerading them.
2020-06-15 18:45:38 -04:00
Kubernetes Prow Robot
7401f8e2ea
Merge pull request #91927 from wangkai1994/fix/replace_whitelist_to_allowed
...
replace whitelist to allowlist
2020-06-15 14:17:59 -07:00
Wei Huang
dd5db75840
Move scheduler fake artifacts to pkg/scheduler/testing
...
- move some fake artifacts from pkg/scheduler/core to pkg/scheduler/testing so it can be consumed
by core as well as plugin testings
2020-06-15 10:56:06 -07:00