Antonio Ojea
3a1f656491
reset metrics on dockerhim unit tests
2021-03-13 21:17:56 +01:00
JUN YANG
90bfd38b83
Structured Logging migration: modify node and pod part logs of kubelet.
...
Signed-off-by: JunYang <yang.jun22@zte.com.cn >
2021-03-13 12:31:09 +08:00
Utsav Oza
2f3a4ec9cb
Migrate remaining files in pkg/kubelet to structured logging
2021-03-12 22:36:28 +05:30
changshuchao
fa6654ff19
test case for pkg/kubelet/cri/remote/utils_test.go
2021-03-12 23:47:24 +08:00
pacoxu
9e024e839b
update structured log for policy_static.go
2021-03-12 16:26:20 +08:00
Kubernetes Prow Robot
fcee7a0105
Merge pull request #99996 from learner0810/master
...
logcheck: check Windows files
2021-03-12 00:12:18 -08:00
pacoxu
4cf80f160d
update structured log for fake_cpu_manager.go
2021-03-12 16:06:52 +08:00
Kubernetes Prow Robot
faa5c8ccd4
Merge pull request #99375 from ehashman/probe-kep-2238
...
Add Probe-level terminationGracePeriodSeconds
2021-03-11 23:10:18 -08:00
chymy
c28be0baab
Fix staticcheck failures for pkg/controller/replicaset and pkg/kubelet/dockershim
2021-03-11 22:16:05 -05:00
hwdef
ae8c4c2656
kubelet: fix the bug that the number of cpu cannot be obtained normally under Windows
2021-03-12 10:22:01 +08:00
Amim Knabben
95db61e37b
Structured log for topologymanager
2021-03-11 20:50:14 -05:00
Kubernetes Prow Robot
bebb932bdf
Merge pull request #99479 from mengjiao-liu/migrate_to_structured_logs
...
Migrate `pkg/kubelet/lifecycle,oom` to structured logging
2021-03-11 17:28:33 -08:00
Kubernetes Prow Robot
b5ba51b22b
Merge pull request #98154 from yangjunmyfm192085/run-test
...
migrate file kubelet_node_status.go logs to structured logging and fix error description of reconcileHugePageResource log
2021-03-11 17:28:18 -08:00
Kubernetes Prow Robot
0f1db5891d
Merge pull request #99885 from qingwave/structred-log-kubelet-pluginmanager
...
Migrate pkg/kubelet/pluginmanager to structured logging
2021-03-11 16:24:18 -08:00
Elana Hashman
9fb6e712ff
Override terminationLivenessGracePeriod for probes
2021-03-11 14:38:03 -08:00
David Porter
7b7c842eec
kubelet: remove unused applyLimits function
2021-03-11 13:49:09 -08:00
afrouz
27a99045e5
Migrate pkg/kubelet/config to structured logging
...
Co-authored-by: Shubheksha <shubheksha@users.noreply.github.com >
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com >
Co-authored-by: Elana Hashman <ehashman@users.noreply.github.com >
2021-03-11 14:58:38 +03:30
zhongjun.li
cbc0d55912
logcheck: check Windows files
2021-03-11 17:40:07 +08:00
changshuchao
bf18a1ca53
Add test case for state.go
2021-03-11 17:06:56 +08:00
mengjiao.liu
e557f61784
Migrate pkg/kubelet/lifecycle,oom to structured logging
...
Co-authored-by: Elana Hashman <ehashman@users.noreply.github.com >
2021-03-11 13:36:48 +08:00
Mengxue Zhang
bdda9728e7
move nodeaffinity helpers to component-helpers package
2021-03-10 20:19:25 +00:00
Kubernetes Prow Robot
4b6e3e164f
Merge pull request #99221 from jsturtevant/windows-host-stats-provider
...
Get filesystem stats for files on Windows
2021-03-10 11:09:23 -08:00
qingwave
f405c797ff
migrate pkg/kubelet/pluginmanager to structured logging
2021-03-10 15:44:16 +08:00
shiyajuan123
d344fc612e
fix and update
2021-03-10 14:58:17 +08:00
shiyajuan123
9cee635494
fix and update
2021-03-10 14:29:03 +08:00
Kubernetes Prow Robot
410d092d8a
Merge pull request #99643 from pohly/generic-ephemeral-volume-beta
...
generic ephemeral volume beta
2021-03-09 17:39:26 -08:00
Kubernetes Prow Robot
dcb3c56957
Merge pull request #99284 from fengzixu/support-external-health-monitor
...
feature: add CSIVolumeHealth feature and gate
2021-03-09 16:07:50 -08:00
Kubernetes Prow Robot
c3bed939ff
Merge pull request #97659 from chenyw1990/fixedPodTerminatingWithSubpathNotEmpty
...
don't delete pod from desiredStateOfWorld when pod's sandbox is running
2021-03-09 16:07:26 -08:00
Kubernetes Prow Robot
770a9504ea
Merge pull request #95734 from fromanirh/podresources-concrete-resources-apis
...
podresources APIs: concrete resources apis: implement GetAllocatableResources
2021-03-09 14:29:04 -08:00
afrouz
8f2e927b4a
Migrate cmd/kubelet, image, cadvisor and cri to structured logging
2021-03-09 23:12:10 +03:30
Kubernetes Prow Robot
a10a694f56
Merge pull request #99875 from bobbypage/bump-cadvisor
...
vendor: cAdvisor v0.39.0
2021-03-09 11:05:58 -08:00
Utsav Oza
13513f9762
Migrate pkg/kubelet/cm/ top level files to structured logging
2021-03-09 23:15:24 +05:30
Kubernetes Prow Robot
3f09686958
Merge pull request #100006 from cynepco3hahue/pass_cpuset_mems_to_dockershim
...
Pass cpuset.mems to the dockershim during container creation
2021-03-09 09:19:44 -08:00
fengzixu
edc1c62471
feature: add CSIVolumeHealth feature and gate
...
1. add EventRecorder to ResourceAnalyzer
2. add CSIVolumeHealth feature and gate
2021-03-10 01:16:37 +09:00
Artyom Lukianov
0370768650
Pass cpuset.mems to the dockershim during container creation
...
Signed-off-by: Artyom Lukianov <alukiano@redhat.com >
2021-03-09 14:29:12 +02:00
Kubernetes Prow Robot
a56fa34d6b
Merge pull request #99942 from jsafrane/refactor-migration-featuregates
...
Refactor CSI migration plugin manager to get featureGates as a parameter
2021-03-09 04:27:46 -08:00
Kubernetes Prow Robot
4d969ac90d
Merge pull request #99257 from chenyw1990/fixedLogFormatJsonPanic
...
fix json log format panic, change the flag name in flagIsSet
2021-03-09 04:27:29 -08:00
Kubernetes Prow Robot
11e9c32e4b
Merge pull request #97093 from aldudko/migrate-kubelet-logs
...
Migrate prober.probe logs to structured logging
2021-03-09 04:26:59 -08:00
Francesco Romani
1e7bb20c52
kubelet: podresources: per-endpoint metrics
...
Before the addition of GetAllocatableResources, the
podresources API had just one endpoint `List()`, thus we could just
account for the total of the calls to have a good pulse of the API usage.
Now that we extend the API with more endpoints
(`GetAlloctableResources`), in order to improve the observability we add
per-endpoint counters, in addition to the existing counter of the total
API calls.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:14:58 +01:00
Francesco Romani
d7a30e1b08
podresources: getallocatable: add feature gate
...
Add feature gate to disable the GetAllocatableResources API.
The feature gate isd alpha stage, disabled by default.
Add e2e test to demonstrate the behaviour with feature gate disabled.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:14:56 +01:00
Francesco Romani
6c8d4ee9ee
podresources: devices: add test for dev reporting
...
Add test to reflect the correct behaviour according to
review comments.
Most notably, we should consider that -as the device plugin API
allows to express- a device ID can have multiple "NUMA" node IDs.
(example: AMD Rome).
More details:
https://github.com/kubernetes/kubernetes/pull/95734#discussion_r539545041
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:37 +01:00
Francesco Romani
e930799d28
podresources: test: add test for nil Topology
...
From https://github.com/kubernetes/kubernetes/pull/96553
we are reminded we need to handle the case on which
a device plugin reports nil Topology, which is legal.
Add unit test to ensure this case is handled.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:37 +01:00
Francesco Romani
da55ef0b9a
node: podresources: list devices without topology
...
It's legal for device plugins to not expose topology informations.
Previously, the code was just skipping these devices.
Review highlighted is better to report them anyway and let the
client application decide if they still want somehow to track them
or skip them entirely.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:37 +01:00
Francesco Romani
9c69db3f04
e2e: node: add tests for GetAllocatableResources
...
Add e2e tests for the new GetAllocatableResources API.
The tests are added in the `podresources_test` suite
created previously in this series.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:36 +01:00
Francesco Romani
8afdf4f146
node: podresources: translate types in cm
...
during the review, we convened that the manager types
(CPUSet, ResourceDeviceInstances) should not cross the
containermanager API boundary; thus, the ContainerManager layer
is the correct place to do the type conversion
We push back the type conversions from the podresources server
layer, fixing tests accordingly.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:36 +01:00
Francesco Romani
ad68f9588c
node: podresources: make GetDevices() consistent
...
We want to make the return type of the GetDevices() method of the
podresources DevicesProvider interface consistent with
the newly added GetAllocatableDevices type.
This makes the code easier to read and reduces the coupling between
the podresourcesapi server and the devicemanager code.
No intended changes in behaviour, but the different return types
now requires some data massaging. Tests are updated accordingly.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:36 +01:00
Francesco Romani
6d33354e4c
node: podresources: implement GetAllocatableResources API
...
Extend the podresources API implementing the GetAllocatableResources endpoint,
as specified in the KEPs:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2043-pod-resource-concrete-assigments
https://github.com/kubernetes/enhancements/pull/2404
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:36 +01:00
Francesco Romani
1375c5bdc7
node: podresources: make GetCPUs return cpuset
...
a upcoming patch wants to add GetAllocatableCPUs() returning a cpuset.
To make the code consistent and a bit more flexible, we change the
existing interface to also return a cpuset.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2021-03-09 13:13:36 +01:00
shiyajuan123
6b53f8c65d
migrate kubelet/cm/container logs to structured logging
2021-03-09 18:27:54 +08:00
Patrick Ohly
555d4a12bf
generic ephemeral volumes: drop ReadOnly field
...
As discussed during the alpha review, the ReadOnly field is not really
needed because volume mounts can also be read-only. It's a historical
oddity that can be avoided for generic ephemeral volumes as part
of the promotion to beta.
2021-03-09 08:22:48 +01:00