Clayton Coleman
b638bd8b03
kubelet: If the container status is created, we are waiting
...
If CRI returns a container that has been created but is not running,
it is not safe to assume it is terminal, as our connection to CRI
may have failed. Instead, created is treated as waiting, as in
"waiting for this container to start". Either syncPod or
syncTerminatingPod is responsible for handling this state.
2022-01-28 18:32:15 -05:00
Jordan Liggitt
1d27942efc
Include pod UID in secret/configmap cache key
2022-01-27 22:21:52 -05:00
Kubernetes Prow Robot
4dba52cdf4
Merge pull request #107821 from liggitt/kubelet-secret-manager
...
Move kubelet secret and configmap manager calls to sync_Pod functions
2022-01-27 08:26:58 -08:00
Jordan Liggitt
085693eff2
Move kubelet secret and configmap manager calls to sync_Pod functions
2022-01-27 10:09:13 -05:00
Kubernetes Prow Robot
8712a903cb
Merge pull request #107608 from marseel/fake_prober_in_kubemark
...
Use FakeProber in kubemark clusters
2022-01-26 19:42:49 -08:00
Jyoti Mahapatra
0e0abd602f
parse ipv6 address before comparison ( #107736 )
...
* parse ipv6 address before comparison
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com >
* use parse sloppy
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com >
* use parse sloppy
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com >
* use node address from cloudprovider as is
Signed-off-by: Jyoti Mahapatra <jyotima@amazon.com >
2022-01-26 18:38:49 -08:00
Marcel Zięba
b4b4b8fd6d
Use FakeProber in kubemark clusters
2022-01-26 09:29:04 +00:00
Kubernetes Prow Robot
38e9a29620
Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
...
Remove dynamic kubelet config
2022-01-25 19:20:25 -08:00
Ryan Phillips
25f95f2bde
kubelet: fix podstatus not containing pod full name
2022-01-25 13:21:04 -06:00
calvin
d9ab5e18d3
fix: data race when hijack klog
...
Signed-off-by: calvin <wen.chen@daocloud.io >
2022-01-24 15:01:49 +08:00
fengzixu
9808ae48a0
change the volume health status metrics name
2022-01-23 02:44:10 +00:00
Jack
7655702313
add container probe duration metrics
2022-01-20 16:50:02 -08:00
yanghesong
4cab028a92
Remove dockershim comments in kubelet
...
Signed-off-by: yanghesong <hesong.yang@foxmail.com >
2022-01-20 16:15:29 +08:00
Sergey Kanzhelev
7e7bc6d53b
remove DynamicKubeletConfig logic from kubelet
2022-01-19 22:38:04 +00:00
Paco Xu
6611c36372
add volume type and seperated histogram for volume stat collection
2022-01-19 22:33:37 +08:00
Ciprian Hacman
21809043b5
Remove deprecated flag --non-masquerade-cidr in kubelet
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev >
2022-01-19 09:17:26 +02:00
Kubernetes Prow Robot
feb758027c
Merge pull request #106907 from cyclinder/remove_dockershim_flags
...
Clean up dockershim flags in the kubelet
2022-01-18 09:09:09 -08:00
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