Sergey Kanzhelev
3af652f2f2
revert auto-completed package names
2020-07-31 03:47:04 +00:00
Sergey Kanzhelev
d20fd40884
remove legacy leftovers of portmapping functionality that was moved to CNI
2020-07-30 23:12:16 +00:00
Luigi Bitonti
19793bd3fa
Update k8s.io/utils dependency and use ebtables from there
2020-07-30 08:58:21 +01:00
Seth Jennings
a4f043a980
kubelet: eviction: remove noise from TestGetReclaimableThreshold test output
2020-07-27 13:53:55 -05:00
Jordan Liggitt
f33dc28094
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
2020-07-25 16:45:02 -04:00
Jordan Liggitt
124a5ddf72
Fix int->string casts
2020-07-24 16:23:12 -04:00
Alexey Perevalov
a047e8aa1b
move to cadvisor.MachineInfo
...
This patch removes GetNUMANodeInfo, cadvisor.MachineInfo will be used
instead of it. GetNUMANodeInfo was introduced due to difference of meaning of
MachineInfo.Topology. On the arm it was NUMA nodes, but on the x86 it
represents sockets (since reading from /proc/cpuinfo). Now it unified
and MachineInfo.Topology represents NUMA node.
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-07-24 09:29:41 -04:00
wawa0210
ccde63b9c1
fix windows container root validate
2020-07-24 19:59:58 +08:00
Marian Lobur
5d1b3e26af
Fix an issue when rotated logs of dead containers are not removed.
2020-07-24 10:06:24 +02:00
Jun Gong
454f9acc24
Remove unuseful error message about updating pod conditions not owned by kubelet
2020-07-24 09:56:03 +08:00
zhangsheng02
dadc2ad385
add more testing cases
...
Signed-off-by: zhangsheng02 <sheng.zhang@daocloud.io >
2020-07-24 09:32:34 +08:00
Keerthan Reddy,Mala
acac15c20e
fix bazel build file
2020-07-22 14:12:27 -07:00
Keerthan Reddy,Mala
872859b422
correct the sandboxId attribute in unit tests
2020-07-22 11:54:58 -07:00
Keerthan Reddy,Mala
851d778531
address review comments
2020-07-22 11:54:58 -07:00
Keerthan Reddy,Mala
90cc954eed
add sandbox deletor to delete sandboxes on pod delete event
2020-07-22 11:54:58 -07:00
Keerthan Reddy,Mala
d4325f42fb
Check for sandboxes before deleting the pod from apiserver
2020-07-22 11:54:56 -07:00
Kubernetes Prow Robot
ae7dce72ce
Merge pull request #91930 from RenaudWasTaken/DisableAcceleratorUsageMetrics
...
Add DisableAcceleratorUsageMetrics Feature Gate
2020-07-22 09:16:06 -07:00
Alexey Perevalov
e33ba9e974
Avoid using socket for hints
...
Sockets don't affect performance as NUMA node does, since NUMA
node has dedicated memory controller, but socket it's physical
extension point.
Socket it's only cpu specific thing and it's strange to merge bitmask of
deviceplugin's and cpu manager, when cpu manager takes into account
socket.
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-07-22 05:14:34 -04:00
RyderXia
b20ceaa85d
regen
2020-07-22 10:53:11 +08:00
RyderXia
d76c2cc94c
update build
2020-07-22 09:36:55 +08:00
Jordan Liggitt
d195fc2ec8
Ensure runtimeCache contains all observed started containers on pod delete
2020-07-21 15:54:29 -04:00
Kubernetes Prow Robot
b6174e605f
Merge pull request #93189 from klueska/upstream-fix-bug-topology-manager
...
Fix a bug whereby reusable CPUs and devices were not being honored
2020-07-21 04:35:17 -07:00
RyderXia
136df8ce53
update
2020-07-21 17:00:49 +08:00
RyderXia
2214117cd1
clean up unused var containerCache
2020-07-21 16:57:36 +08:00
Kubernetes Prow Robot
1fdd8fb213
Merge pull request #93263 from liggitt/windows
...
Fix windows kubelet startup
2020-07-20 19:51:57 -07:00
wawa0210
aea228f5dd
fix no-new-privileges on windows
2020-07-20 16:14:52 -04:00
Jordan Liggitt
886727a4c0
Revert "Add deviceManager in windows container manager"
...
This reverts commit 056d73b1a1 .
2020-07-20 16:13:53 -04:00
Giuseppe Scrivano
ef935bd991
kubelet: clamp cpu shares to max allowed
...
clamp the max cpu.shares to the maximum value allowed by the kernel.
It is not an issue when using cgroupfs, as the kernel will
anyway make sure the value is not out of range and automatically clamp
it, systemd has an additional check that prevents the cgroup creation.
Closes: https://github.com/kubernetes/kubernetes/issues/92855
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2020-07-20 17:18:03 +02:00
Kevin Klues
00df26a985
Fix a bug whereby reusable CPUs and devices were not being honored
...
Previously, it was possible for reusable CPUs and reusable devices (i.e.
those previously consumed by init containers) to not be reused by
subsequent init containers or app containers if the TopologyManager was
enabled. This would happen because hint generation for the
TopologyManager was not considering the reusable devices when it made
its hint calculation.
As such, it would sometimes:
1) Generate a hint for a differnent NUMA node, causing the CPUs and
devices to be allocated from that node instead of the one where the
reusable devices live; or
2) End up thinking there were not enough CPUs or devices to allocate and
throw a TopologyAffinity admission error
This patch fixes this by ensuring that reusable CPUs and devices are
considered as part of TopologyHint generation. This frunctionality is
difficult to unit test since it spans multiple components, but an e2e
test will be added in a subsequent patch to test this functionality.
2020-07-20 11:41:13 +00:00
Kevin Klues
74fe9364c3
Simplify logic in devicemanager TopologyHint generation
2020-07-20 11:41:13 +00:00
Kevin Klues
9f5f401d60
Add AnySet() to topologymanager bitmask API
2020-07-20 11:41:13 +00:00
zhangsheng02
14d2440b87
add GetAddressAndDialer unit test
...
Signed-off-by: zhangsheng02 <sheng.zhang@daocloud.io >
2020-07-20 18:16:58 +08:00
Gaurav Singh
0fb9b12153
[kubelet/dockershim] : Use local copy for range iterator
...
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com >
2020-07-18 12:52:23 -04:00
Kubernetes Prow Robot
242f3d9dce
Merge pull request #80917 from aarnaud/windows-devicemanager
...
Port deviceManager to windows container manager to enable GPU access
2020-07-17 21:04:50 -07:00
Anish Shah
0ffe89ed0b
kubelet: add operations count and error count metrics to network plugin manager
2020-07-15 12:41:35 -07:00
Kubernetes Prow Robot
d9c3d15018
Merge pull request #92986 from gnufied/fix-in-use-errors
...
Handle volume-in-use error during volume expansion
2020-07-15 00:30:37 -07:00
Kubernetes Prow Robot
428b500c5a
Merge pull request #90949 from pjbgf/seccomp-least-priv-kuberuntime
...
Add seccomp least privilege for kuberuntime
2020-07-14 04:35:21 -07:00
Kubernetes Prow Robot
3f8f9998b0
Merge pull request #90948 from pjbgf/seccomp-least-priv-dockershim
...
Add seccomp least privilege for docker sandbox
2020-07-14 02:23:22 -07:00
Renaud Gaubert
34dc785c0b
Add the DisableAcceleratorUsageMetrics feature gate
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com >
2020-07-13 20:52:06 +00:00
Giuseppe Scrivano
79be8be10e
kubelet, cgroupv2: make hugetlb optional
...
make the hugetlb controller optional when cgroup v2 is used.
Closes: https://github.com/kubernetes/kubernetes/issues/92933
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2020-07-13 09:40:55 +02:00
Kubernetes Prow Robot
6b5dc37708
Merge pull request #92919 from dashpole/update_cadvisor
...
Update cAdvisor to v0.37.0
2020-07-12 06:59:55 -07:00
Kubernetes Prow Robot
8398bc3b53
Merge pull request #92916 from joelsmith/count-etc-hosts
...
Include pod /etc/hosts in ephemeral storage calculation for eviction
2020-07-12 06:59:36 -07:00
Kubernetes Prow Robot
63926cf8e7
Merge pull request #92862 from giuseppe/cgroup-fix-leaks
...
vendor: update github.com/opencontainers/runc
2020-07-11 20:57:11 -07:00
Hemant Kumar
b8c0435bc2
Handle volume-in-use error
2020-07-11 09:02:58 -04:00
Kubernetes Prow Robot
93e76f5081
Merge pull request #92442 from tedyu/grace-period-with-map
...
Respect grace period when removing mirror pod
2020-07-10 17:49:23 -07:00
Kubernetes Prow Robot
26da0ea91e
Merge pull request #92794 from klueska/upstream-more-tests-get-preferred-allocation
...
Add more tests for device plugin's GetPreferredAllocation() API
2020-07-10 15:42:21 -07:00
Kubernetes Prow Robot
0cb7e320a5
Merge pull request #92784 from pohly/generic-ephemeral-inline-volumes
...
generic ephemeral inline volumes
2020-07-10 15:41:46 -07:00
Kubernetes Prow Robot
a6378d8b12
Merge pull request #92779 from fisherxu/patch-2
...
Return err when create ContainerLogsDir failed
2020-07-10 15:41:37 -07:00
Ali Farah
373e0f09bd
Add unittest coverage for boottime_util_linux.go
2020-07-11 04:11:01 +10:00
DeliangFan
0b80c43f76
Set the oom_score_adj of guaranteed pod to -997
...
When oom happens, the sandbox maybe killed first, so set the oom score of guaranteed pod to -997.
2020-07-10 15:13:15 +08:00