James Sturtevant
c9eff4e906
Get filesystem stats for files on Windows
2021-03-08 12:50:23 -08:00
Kubernetes Prow Robot
eb4dafb7f1
Merge pull request #99651 from umohnani8/cri
...
Move CRIContainerLogRotation to GA
2021-03-08 12:07:20 -08:00
Jan Safranek
219cbc818a
Refactor CSI migration plugin manager to get featureGates as a parameter
...
This allows caller to provide fake ones for testing of various corner cases
(migration on A/D controller disabled while enabled on kubelet).
2021-03-08 13:50:01 +01:00
chenyw1990
57a3b0abd6
reduce configmap and secret watch of kubelet
2021-03-08 16:55:39 +08:00
Hussaina Begum Nandyala
2424c7388d
Migrating pkg/kubelet/winstats to structured logging
...
Signed-off-by: Hussaina Begum Nandyala <hexxdump@gmail.com >
2021-03-08 13:12:58 +05:30
Aditi Sharma
45c7608379
Migrate to structured logging
...
pkg/kubelet/kuberuntime/kuberuntime_manager.go
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com >
2021-03-08 11:27:44 +05:30
Kubernetes Prow Robot
a91fdfbeb3
Merge pull request #97493 from Pingan2017/allocatemem-1224
...
add operator for allocateMemory.available signal
2021-03-07 20:09:44 -08:00
Krzysztof Gibuła
e46b280f96
Replace klog with with testing.T logging in pkg/kubelet tests
2021-03-07 23:10:02 +01:00
Navid Shaikh
1f22a173d9
Migrate pkg/kubelet/util to structured logging
...
Part of https://github.com/kubernetes/kubernetes/issues/98976
2021-03-07 21:17:46 +05:30
Kubernetes Prow Robot
c193c1b234
Merge pull request #98376 from matthyx/mega
...
Make all health checks probing consistent
2021-03-06 11:45:41 -08:00
Qi Wang
8133d29586
Refactor pods format to ObjRef slice
...
Refactor format.Pods to return a slice of ObjRef for structured logging.
Ref: https://github.com/kubernetes/kubernetes/pull/99029#discussion_r586785552
Signed-off-by: Qi Wang <qiwan@redhat.com >
2021-03-06 11:26:50 -05:00
qingwave
8f2d913acd
migrate kubelet/preemption and kubelet/logs to structured logging
2021-03-06 13:13:18 +08:00
Kubernetes Prow Robot
56bcd562a4
Merge pull request #96973 from chenyw1990/optimizationRuntimeContainerLog
...
Optimization log: add containerName to log
2021-03-05 20:55:41 -08:00
Kubernetes Prow Robot
7125496e66
Merge pull request #99735 from bobbypage/beta-graceful-shutdown
...
Promote kubelet graceful node shutdown to beta
2021-03-05 17:23:42 -08:00
David Porter
893f5fd4f0
Promote kubelet graceful node shutdown to beta
...
- Change the feature gate from alpha to beta and enable it by default
- Update a few of the unit tests due to feature gate being enabled by
default
- Small refactor in `nodeshutdown_manager` which adds `featureEnabled`
function (which checks that feature gate and that
`kubeletConfig.ShutdownGracePeriod > 0`).
- Use `featureEnabled()` to exit early from shutdown manager in the case
that the feature is disabled
- Update kubelet config defaulting to be explicit that
`ShutdownGracePeriod` and `ShutdownGracePeriodCriticalPods` default to
zero and update the godoc comments.
- Update defaults and add featureGate tag in api config godoc.
With this feature now in beta and the feature gate enabled by default,
to enable graceful shutdown all that will be required is to configure
`ShutdownGracePeriod` and `ShutdownGracePeriodCriticalPods` in the
kubelet config. If not configured, they will be defaulted to zero, and
graceful shutdown will effectively be disabled.
2021-03-05 15:21:37 -08:00
Sladyn
cee2c42a54
Apply suggestions from code review
...
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com >
2021-03-05 23:59:23 +05:30
Sladyn Nunes
5ba3bf1bca
kubelet: migrate pkg/kubelet/cloudresource to structured logging
2021-03-05 23:59:23 +05:30
Nabarun Pal
b009a12f61
migrate pkg/kubelet/token to structured logging
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com >
2021-03-05 22:40:46 +05:30
Navid Shaikh
dbe5476a2a
Migrate pkg/kubelet/status to structured logging
2021-03-05 20:58:46 +05:30
Krzysztof Gibuła
86b0efcd77
Migrate pkg/kubelet/prober to structured logging
2021-03-05 16:10:09 +01:00
Kubernetes Prow Robot
55f255208a
Merge pull request #83730 from claudiubelu/windows/containerd-etc-hosts
...
Windows: Fixes /etc/hosts file mounting support for containerd
2021-03-05 05:08:22 -08:00
Aditi Sharma
5af10e9828
Migrate to structured logging
...
migrate pkg/kubelet/server to structured logging.
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com >
2021-03-05 17:55:48 +05:30
Matthias Bertschy
431e6a7044
Move readinessManager updates handling to kubelet
2021-03-05 07:02:25 +01:00
Matthias Bertschy
eed218a3a2
Move startupManager updates handling to kubelet
2021-03-05 07:02:25 +01:00
Matthias Bertschy
4870e64ac1
Improve update time of readiness state
2021-03-05 07:02:24 +01:00
Shintaro Murakami
fe7a862c2d
Unify determination of whether a volume is ephemeral
2021-03-05 14:49:09 +09:00
chenyw1990
289990db65
don't delete pod from desired state of world when pod's sandbox is running, because volume is the resource of pod.
2021-03-05 11:33:04 +08:00
Kubernetes Prow Robot
a4025a8462
Merge pull request #98986 from gjkim42/fix-runtime-assert
...
kubelet: Make the test fail if (*FakeRuntime).Assert fails
2021-03-04 18:34:33 -08:00
chenyw1990
68457812f3
Use structured logging to refactor log printing code, and add containerName to log output information
2021-03-05 09:10:05 +08:00
Kubernetes Prow Robot
9f451c03e9
Merge pull request #97979 from danwinship/pod-ip-family
...
Make podIPs order match node IP family preference
2021-03-04 16:06:22 -08:00
Kubernetes Prow Robot
413ff6751b
Merge pull request #98365 from odinuge/cgroup-v2-systemd
...
Fix cgroup handling for systemd with cgroup v2
2021-03-04 14:40:34 -08:00
Kubernetes Prow Robot
14abaa23c3
Merge pull request #99032 from yangjunmyfm192085/run-test18
...
Structured Logging migration: modify eviction part logs of kubelet.
2021-03-04 13:38:57 -08:00
Kubernetes Prow Robot
508a8839ad
Merge pull request #98993 from SataQiu/structlog-kubelet-20210211
...
kubelet: migrate pkg/kubelet/certificate to structured logging
2021-03-04 13:38:48 -08:00
Kubernetes Prow Robot
8d8f49597d
Merge pull request #95661 from oomichi/add-unit-tests-for-helpers_linux_test.go
...
Add unit tests for kubelet cadvisor_linux
2021-03-04 13:38:09 -08:00
Dan Winship
5fd1651fc1
Make podIPs order match node IP family preference
2021-03-04 15:46:36 -05:00
Kubernetes Prow Robot
a238698ea0
Merge pull request #99446 from pohly/generic-ephemeral-enablement
...
Generic ephemeral volume enablement
2021-03-04 11:00:30 -08:00
Urvashi Mohnani
ca99aa587d
Move CRIContainerLogRotation to GA
...
Graduate the CRIContainerLogRotation feature gate
from beta to GA.
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
2021-03-04 09:40:02 -05:00
Kubernetes Prow Robot
930ca85613
Merge pull request #99607 from krzysiekg/structured_logging_pkg_kubelet_stats
...
Migrate pkg/kubelet/stats to structured logging
2021-03-04 00:28:38 -08:00
Kubernetes Prow Robot
4f9317596c
Merge pull request #99723 from jingxu97/feb/statl
...
Fix issue in checking domain socket for plugin watcher
2021-03-03 17:11:59 -08:00
Kubernetes Prow Robot
ef44d39be0
Merge pull request #99464 from Nordix/master-fix
...
Number of sockets is assumed to be same as NUMA nodes in kubelet
2021-03-03 14:41:21 -08:00
ravisantoshgudimetla
e64576af0a
Only system-node-critical pods should be OOM Killed last
2021-03-03 16:34:27 -05:00
Jing Xu
d669cb1b17
Fix issue in checking domain socket for plugin watcher
...
Due to recent os.Stat() issue for Windows 20H2, added the logic to use
os.Lstat() if os.Stat() fails for Windows
Change-Id: Ic9fc07ecc6e9c2984e854ac77121ff61c8e0d041
2021-03-03 12:37:14 -08:00
Kubernetes Prow Robot
a6a66c3594
Merge pull request #98939 from yangjunmyfm192085/run-test16
...
Structured Logging migration: modify dockershim and network part logs of kubelet.
2021-03-03 03:31:33 -08:00
Kubernetes Prow Robot
ad80c76677
Merge pull request #98924 from cynepco3hahue/set_container_memory_during_creation
...
memory manager: specify the container cpuset.memory during the creation
2021-03-03 03:31:20 -08:00
Patrick Ohly
68370c8aa6
kubelet: more tests for generic ephemeral volumes
...
This simulates various error scenarios (PVC not created for pod,
feature disabled) and switching between feature disabled and enabled.
2021-03-03 10:13:05 +01:00
Patrick Ohly
edb9a8584c
kubelet: better error when generic ephemeral volume is disabled
...
Silently ignoring the unsupported volume type leads to:
Warning FailedMount 8s kubelet Unable to attach or mount volumes: unmounted volumes=[my-csi-volume default-token-bsnbz], unattached volumes=[my-csi-volume default-token-bsnbz]: failed to get Plugin from volumeSpec for volume "my-csi-volume" err=no volume plugin matched
The new message is easier to understand:
Warning FailedMount 6s (x5 over 49s) kubelet Unable to attach or mount volumes: unmounted volumes=[my-csi-volume], unattached volumes=[my-csi-volume default-token-rwlpp]: volume my-csi-volume is a generic ephemeral volume, but that feature is disabled in kubelet
2021-03-03 10:13:05 +01:00
Jakub Guzik
85d69cde82
Migrate pkg/kubelet/cm/cpumanager/state to structured logging
...
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com >
2021-03-03 01:18:37 +01:00
Kubernetes Prow Robot
62bb595cbe
Merge pull request #98627 from jialaijun/migrate_to_structured_logs_5
...
Migrate pkg/kubelet/metrics logs to structured logging.
2021-03-02 15:49:31 -08:00
Kubernetes Prow Robot
da2f6385e9
Merge pull request #98589 from chenyw1990/structuredLogsOfRemote
...
pkg/kubelet/cri/remote: migrate to structured logs
2021-03-02 15:49:19 -08:00
Kubernetes Prow Robot
e811f5fdf9
Merge pull request #99463 from jingxu97/feb/stat
...
Use Lstat in plugin watcher to avoid Windows problem
2021-03-02 14:47:19 -08:00