Eric Lin
fea15977c8
Consider threads-max when deciding MaxPID.
...
Fixes kubernetes#107111
2022-01-17 21:51:59 +00:00
Antonio Ojea
a20b2088ac
set secondary address on host-network pods
...
host-network pods IPs are obtained from the reported kubelet nodeIPs.
Historically, host-network podIPs are immutable once set, but when
we've added dual-stack support, we didn't consider that the secondary
IP address may not be present at the same time that the primary nodeIP.
If a secondary IP address is added to a node after the host-network pods
IPs are set, we can add the secondary host-network pod IP address
maintaining the current behavior of not updating the current podIPs on
host-network pods.
2022-01-17 18:05:42 +01:00
Paco Xu
e3745a10aa
add warning log if volume calculation took too long than 1 second
2022-01-17 10:40:49 +08:00
Kubernetes Prow Robot
22a03f893d
Merge pull request #107207 from ehashman/deprecate-log-sanitization
...
Deprecate dynamic log sanitization
2022-01-15 15:19:26 -08:00
songlh
50840f5039
change to use require.NoError
2022-01-14 21:46:12 -05:00
cyclinder
07999dac70
Clean up dockershim flags in the kubelet
...
Signed-off-by: cyclinder <qifeng.guo@daocloud.io >
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev >
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev >
2022-01-14 16:02:50 +02:00
Kubernetes Prow Robot
8c6b910e68
Merge pull request #107550 from wojtek-t/remove_selflink_from_kubelet
...
Remove no-longer used selflink code from kubelet
2022-01-14 03:28:27 -08:00
Wojciech Tyczyński
6088fe4221
Remove no-longer used selflink code from kubelet
2022-01-14 10:38:23 +01:00
Kubernetes Prow Robot
3bd422dc76
Merge pull request #107293 from dims/jan-1-owners-cleanup
...
Cleanup OWNERS files - Jan 2021 Week 1
2022-01-13 10:30:30 -08:00
JUN YANG
2247b76ab1
Add test cases of kubelet_pods_test.go.
...
Signed-off-by: JUN YANG <yang.jun22@zte.com.cn >
2022-01-13 14:37:31 +08:00
Patrick Ohly
9eaa2dc554
avoid klog Info calls without verbosity
...
In the following code pattern, the log message will get logged with v=0 in JSON
output although conceptually it has a higher verbosity:
if klog.V(5).Enabled() {
klog.Info("hello world")
}
Having the actual verbosity in the JSON output is relevant, for example for
filtering out only the important info messages. The solution is to use
klog.V(5).Info or something similar.
Whether the outer if is necessary at all depends on how complex the parameters
are. The return value of klog.V can be captured in a variable and be used
multiple times to avoid the overhead for that function call and to avoid
repeating the verbosity level.
2022-01-12 07:48:36 +01:00
Kubernetes Prow Robot
b5103f6117
Merge pull request #107426 from yanghesong/remove_validate_runtime
...
Remove runtime in validate
2022-01-11 20:50:36 -08:00
Eric Lin
5fdf24baca
Read number of running processes from /proc/loadavg.
...
Fallback to using sysinfo syscall if failed.
Fix kubernetes#107107
2022-01-11 21:33:53 +00:00
Kubernetes Prow Robot
cadbe8dfb5
Merge pull request #107250 from cndoit18/use-errors
...
cleanup(kubelet): use errors.Is(err, os.ErrProcessDone)
2022-01-11 10:49:01 -08:00
Kubernetes Prow Robot
19069665f9
Merge pull request #107094 from adisky/d-container-runtime
...
Mark container-runtime kubelet flag as deprecated
2022-01-11 10:48:46 -08:00
Kubernetes Prow Robot
7eb5046064
Merge pull request #106470 from qmloong/qmloong/fix
...
fix: some typos and syncPod outdated workflow annotation
2022-01-11 10:48:38 -08:00
Kubernetes Prow Robot
5f4914604d
Merge pull request #106353 from gjkim42/remove-false-pleg-errors
...
kubelet: Remove false PLEG errors
2022-01-11 10:48:26 -08:00
fengzixu
5d544d3f01
fix comment
2022-01-11 14:28:31 +00:00
fengzixu
f96449f2e2
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
e2b5b5465a
improve metrics comment
2022-01-11 13:50:18 +00:00
fengzixu
c1a58d715c
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
5593e27429
improve metrics comment
2022-01-11 13:50:18 +00:00
fengzixu
1cdc694ac2
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
4a72f08a28
add useful comment for volume stats metrics
2022-01-11 13:50:18 +00:00
fengzixu
b885deffe3
fix unit test
2022-01-11 13:50:17 +00:00
fengzixu
ed7fd0ced5
add volumeHealth label to metrics
2022-01-11 13:50:17 +00:00
fengzixu
bab1755274
fix: correct metrics expression
2022-01-11 13:50:17 +00:00
fengzixu
d71e21e01e
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-01-11 13:50:17 +00:00
Dingzhu Lurong
1de2f3cc7d
add writer error handler
2022-01-11 11:47:25 +08:00
Kubernetes Prow Robot
a0dfd958d5
Merge pull request #107163 from cyclinder/fix_leak_goroutine
...
fix goroutine leaks in TestConfigurationChannels
2022-01-10 17:23:16 -08:00
Davanum Srinivas
9682b7248f
OWNERS cleanup - Jan 2021 Week 1
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-01-10 08:14:29 -05:00
cyclinder
928e686877
fix goroutine leaks in TestConfigurationChannels
...
Signed-off-by: cyclinder <qifeng.guo@daocloud.io >
2022-01-10 19:51:16 +08:00
yanghesong
6905fef761
Remove runtime in validate
...
Validate is useless as dockershim is removed
Signed-off-by: yanghesong <hesong.yang@foxmail.com >
2022-01-09 09:11:49 +08:00
wq
4f38d4aaa1
fix a typo in the comment of ImageCredentialProviderConfigFile
2022-01-09 00:07:43 +09:00
Kubernetes Prow Robot
d1a5513cb0
Merge pull request #107006 from gnufied/add-total-mount-time-metrics
...
Add metric for reporting total end-to-end mount time
2022-01-07 06:19:31 -08:00
Kubernetes Prow Robot
09fccc3533
Merge pull request #106796 from jonyhy96/fix-timer
...
kubelet: use newtimer instead in nodeshutdown manager
2022-01-06 11:47:12 -08:00
Kubernetes Prow Robot
03ee86c09c
Merge pull request #104837 from eggiter/fix-release-reused-cpus
...
fix(cpumanager): Do not release CPUs of init containers while they are being reused in app containers
2022-01-06 11:46:38 -08:00
Kubernetes Prow Robot
0b9ad84973
Merge pull request #107116 from yxxhero/add_more_msg_for_no_podsandbox_container
...
add more message for no PodSandbox container
2022-01-06 08:58:09 -08:00
Kubernetes Prow Robot
b457ae72f5
Merge pull request #106644 from ahrtr/add_info_counter_perfcounter
...
Add more info when failing to call PdhAddEnglishCounter
2022-01-06 06:45:01 -08:00
Aditi Sharma
e03d7d3fdd
Mark container-runtime flag as deprecated
...
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com >
2022-01-06 10:23:03 +05:30
Mengjiao Liu
beda4cafb6
kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount
2022-01-06 11:47:11 +08:00
Kubernetes Prow Robot
73b68f5233
Merge pull request #106979 from a2ush/fix_typo
...
Fix comment out typo (from resolve.conf to resolv.conf) and change the content name (from maxResolveConfLength to maxResolvConfLength)
2022-01-05 16:08:26 -08:00
Kubernetes Prow Robot
afd254a18f
Merge pull request #106756 from victory460/feature_helpers
...
code cleanup for container/helpers.go
2022-01-05 08:20:42 -08:00
Kubernetes Prow Robot
19591a1324
Merge pull request #105829 from yuanchen8911/master
...
Fix and improve comments on kubelet metrics
2022-01-04 23:02:32 -08:00
Kubernetes Prow Robot
abfbbe4dda
Merge pull request #107119 from hakman/remove_dockerless
...
Remove dockerless build tag and DockerLegacyService interface
2022-01-04 11:27:21 -08:00
Paco Xu
c5d8354e0e
add "kubelet_volume_stat_cal_duration_seconds_bucket" VolumeStatCalDuration metrics for fsquato monitoring benchmark
2021-12-31 11:39:40 +08:00
cndoit18
601d02b90f
refactor(kubelet): use errors.Is(err, os.ErrProcessDone)
...
use errors.Is(err, os.ErrProcessDone) here and remove "process already finished" string comparison.
Signed-off-by: cndoit18 <cndoit18@outlook.com >
2021-12-29 18:10:06 +08:00
Elana Hashman
dbd50d9f50
Remove dynamic log sanitization fields from Kubelet config validation
2021-12-23 13:03:13 -08:00
Kubernetes Prow Robot
f0dbc32ed9
Merge pull request #106853 from gnufied/disable-exp-backoff-volume-not-inuse
...
When volume is not marked in-use, do not backoff
2021-12-22 19:46:37 -08:00
Hemant Kumar
7989f27044
use node informer to check volumes attachment status before backoff
...
fix unit tests
2021-12-20 11:57:05 -05:00