Hanna Lee
1fbf06f5ad
Use time.NewTicker instead of time.Tick to avoid leaking
2021-11-17 08:56:00 +01:00
Hanna Lee
0f3836dcc5
Ignore deprecation warnings with //nolint:staticcheck
2021-11-17 08:55:57 +01:00
Kubernetes Prow Robot
6c357f9996
Merge pull request #106041 from jonyhy96/volumemanager-reconciler-codefmt
...
kubelet: extract multiple ignore errors validate logic to isExpectedError
2021-11-16 22:55:53 -08:00
Kubernetes Prow Robot
1f6d5caa9a
Merge pull request #105437 from cmssczy/update-kubelet-configuration
...
migrate --register-with-taints to KubeletConfiguration
2021-11-16 17:44:00 -08:00
Kubernetes Prow Robot
42d8b2f3b9
Merge pull request #106289 from CatherineF-dev/fix-metrics-AlreadyRegisteredError-in-unit-test
...
Fix metrics AlreadyRegisteredError on TestRecordOperation and TestGetHistogramVecFromGatherer unit test
2021-11-16 16:36:15 -08:00
Kubernetes Prow Robot
6805e6ee41
Merge pull request #104722 from leiyiz/migration
...
turning on the CSIMigrationGCE feature flag
2021-11-16 15:28:32 -08:00
Léiyì Zhang
275fdf0884
fixing unit test failures induced by turning on CSIMigrationGCE
...
disable CSIMigrationGCE in some unit tests
2021-11-16 19:26:30 +00:00
CatherineF-dev
5646120fbb
Use Reset at first
2021-11-16 18:57:24 +00:00
haoyun
b5409adaeb
refactor: extract multiple ignore errors validate to ignoreError
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
2021-11-16 20:43:50 +08:00
caozhiyuan
bad4faf1b9
migrate --register-with-taints to KubeletConfiguration
2021-11-16 19:10:36 +08:00
Kubernetes Prow Robot
1d1d462d2f
Merge pull request #104287 from jsturtevant/windows-stats
...
Reduce the number of expensive calls in the Windows stats queries for dockershim
2021-11-15 18:51:37 -08:00
Kubernetes Prow Robot
0473cab823
Merge pull request #103299 from wgahnagl/addPinned
...
prevents garbage collection from removing pinned images
2021-11-15 18:51:25 -08:00
Kubernetes Prow Robot
39af75af30
Merge pull request #106201 from yxxhero/fea_106111
...
Add more msg when exec probe timeout
2021-11-15 17:51:37 -08:00
Kubernetes Prow Robot
463802765d
Merge pull request #104650 from yxxhero/initcontainer_oomkiil_as_a_failure
...
fix init container oomkilled as a failure
2021-11-15 17:51:25 -08:00
Kubernetes Prow Robot
b7c4962472
Merge pull request #105685 from liggitt/kubelet-file-test
...
Simplify kubelet file config field allowlists
2021-11-15 14:06:48 -08:00
Kubernetes Prow Robot
e4c795168b
Merge pull request #106332 from bobbypage/disable-memcg-notifier
...
kubelet: cgroupv2 disable memcg notifications
2021-11-12 18:36:46 -08:00
CatherineF-dev
d9737eabf4
Use HandlerFor
2021-11-12 23:09:51 +00:00
CatherineF-dev
49d341aa2b
Use defer in non-loop
2021-11-12 23:03:38 +00:00
Kubernetes Prow Robot
1f6aa87a93
Merge pull request #105744 from jsturtevant/windows-containerd-networkstats
...
Get Windows network stats directly for Containerd
2021-11-12 12:36:41 -08:00
Kubernetes Prow Robot
5f0a94b23c
Merge pull request #104743 from gjkim42/ensure-pod-uniqueness
...
Ensure there is one running static pod with the same full name
2021-11-12 12:36:28 -08:00
Kubernetes Prow Robot
6c04f87470
Merge pull request #106382 from rphillips/fix_close_log
...
kubelet: fix file descriptor leak in log rotations
2021-11-12 09:22:40 -08:00
Neha Lohia
fa1b6765d5
move pkg/util/node to component-helpers/node/util ( #105347 )
...
Signed-off-by: Neha Lohia <nehapithadiya444@gmail.com >
2021-11-12 07:52:27 -08:00
CatherineF-dev
a30af261f1
remove lint
2021-11-12 15:03:44 +00:00
Ryan Phillips
d6f9df424a
defer close the rotated log open
2021-11-12 08:13:24 -06:00
CatherineF-dev
a8324a3bb7
clean
2021-11-12 03:52:19 +00:00
CatherineF-dev
744785ee40
remove prometheus.DefaultRegisterer
2021-11-12 02:17:28 +00:00
Kubernetes Prow Robot
3ca3daac76
Merge pull request #103415 from tiloso/staticcheck-kubelet
...
Fix staticcheck failure in pkg/kubelet/cm/cpuset
2021-11-11 15:15:13 -08:00
David Porter
f5140d3145
kubelet: cgroupv2 disable memcg notifications
...
The current memory notifier on cgroupv2 relies on reading
`cgroup.event_control` which is unsupported on cgroupv2. For now, let's
disable the feature on cgroupv2.
2021-11-10 15:40:59 -08:00
ravisantoshgudimetla
696abecada
[test][kubelet]: Fix out of bounds in TestSyncLabels unit
2021-11-10 16:53:59 -05:00
James Sturtevant
ab2e58c416
Get networks stats directly
2021-11-10 12:43:56 -08:00
James Sturtevant
c39945c116
Add unit tests to existing code
2021-11-10 11:50:04 -08:00
James Sturtevant
3564cd5beb
Reduce calls to docker from dockershim for stats
2021-11-10 11:25:03 -08:00
Kubernetes Prow Robot
b56dc43458
Merge pull request #106282 from bobbypage/cadvisor-v043
...
vendor: Bump cAdvisor to v0.43.0
2021-11-10 08:17:38 -08:00
CatherineF-dev
8290400e9c
format
2021-11-10 03:29:13 +00:00
CatherineF-dev
ef0b2dfbf4
Fix metrics AlreadyRegisteredError on TestRecordOperation and TestGetHistogramVecFromGatherer unit test
2021-11-10 03:23:54 +00:00
Kubernetes Prow Robot
5d60c8d857
Merge pull request #102393 from mengjiao-liu/fix-sysctl-regex
...
Upgrade preparation to verify sysctl values containing forward slashes by regex
2021-11-09 18:23:26 -08:00
David Porter
b6269ce5de
kubelet: update cAdvisor usage for v0.43
...
* Change cAdvisor manager constructor
* Change call to adding AcceleratorUsageMetrics
Signed-off-by: David Porter <david@porter.me >
2021-11-09 17:09:12 -08:00
Kubernetes Prow Robot
6ac2d8edc8
Merge pull request #105967 from shivanshu1333/feature2/master/105841
...
Migrated scheduler files `preemption.go`, `stateful.go`, `resource_allocation.go` to structured logging
2021-11-09 10:28:01 -08:00
ravisantoshgudimetla
889d45d3fb
[kubelet] Reject pods with OS field mismatch
...
Once kubernetes#104613 and kubernetes#104693
merge, we'll have OS field in pod spec. Kubelet should start rejecting pods
where pod.Spec.OS and node's OS(using runtime.GOOS) won't match
2021-11-08 19:18:15 -05:00
Kubernetes Prow Robot
cda360c59f
Merge pull request #104613 from ravisantoshgudimetla/reconcile-labels
...
[kubelet]: Reconcile OS and arch labels periodically
2021-11-08 14:15:19 -08:00
Kubernetes Prow Robot
8b463cd141
Merge pull request #105406 from marosset/kubelet-metrics-for-host-process-containers
...
Adding kubelet metrics for started and failed to start HostProcess containers
2021-11-08 13:11:20 -08:00
Shivanshu Raj Shrivastava
f4aad52885
migrated preemption.go, stateful.go, resource_allocation.go to structured logging
2021-11-08 22:52:47 +05:30
Kubernetes Prow Robot
33de444861
Merge pull request #103095 from haircommander/podAndContainerStatsFromCRI-feature-gate
...
Kubelet: implement support for podAndContainerStatsFromCRI
2021-11-07 18:26:53 -08:00
yxxhero
4211826c3c
add more msg when exec probe timeout
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2021-11-06 15:59:22 +08:00
ravisantoshgudimetla
21c5c2ec5c
[kubelet][podadmission]: Validate and reject pods with mismatching labels
2021-11-05 18:47:43 -04:00
ravisantoshgudimetla
02c1bac0b6
[kubelet]: Sync label periodically
2021-11-05 18:47:43 -04:00
Mark Rossetti
ef324d6bbd
Adding kubelet metrics for started and failed to start HostProcess containers
...
Signed-off-by: Mark Rossetti <marosset@microsoft.com >
2021-11-04 14:39:57 -07:00
Mengjiao Liu
275d832ce2
Upgrade preparation to verify sysctl values containing forward slashes by regex
2021-11-04 11:49:56 +08:00
Skyler Clark
e9766c2b81
adds pinned field to imageRecords
2021-11-03 14:47:37 -04:00
Patrick Ohly
3948cb8d1b
component-base: move v/vmodule/log-flush-frequency into LoggingConfiguration
...
These three options are the ones from logs.AddFlags which are not deprecated.
Therefore it makes sense to make them available also via the configuration file
support in the one command which currently supports that (kubelet).
Long-term, all commands should use LoggingConfiguration, either with a
configuration file (as in kubelet) or via flags (kube-scheduler,
kube-apiserver, kube-controller-manager).
Short-term, both approaches have to be supported. As the majority of the
commands only use logs.AddFlags, that function by default continues to register
the flags and only leaves that to Options.AddFlags when explicitly requested.
A drive-by bug fix is done for log flushing: the periodic flushing called
klog.Flush and therefore missed explicit flushing of the newer logr
backend. This bug was never present in any release Kubernetes and therefore the
fix is not submitted in a separate PR.
2021-11-03 07:41:46 +01:00