40 Commits

Author SHA1 Message Date
Sergey Kanzhelev
75bf501888 format imports 2025-08-13 16:56:32 +00:00
Marek Chodor
a765aaecf7 feat!: Set default host address value to localhost.
Usage of `localhost` is family agnostic and will work regardless if
cluster is IPv4 or IPv6. The current value of `127.0.0.1` only works
for IPv4 clusters.

BREAKING CHANGE: It may break in rare cases where `localhost` does not
resolve as `127.0.0.1` (if OS config does not follow RFC5735 and
RFC6761).
2025-06-06 10:30:26 +00:00
Zhen Wang
aed88103f1 Add comment to health checker repair function to explain the need of kill instead of restart 2024-04-05 16:56:03 +00:00
Chotiwat Chawannakul
008a62bb90 fix execCommand output 2024-02-14 13:57:11 -08:00
Ciprian Hacman
5210373640 Init useful flags for klog/v2 2023-09-17 11:00:42 +03:00
Manuel Rüger
e43459d86d Move glog/klog logging to klog/v2 2023-09-17 08:57:33 +03:00
Ciprian Hacman
f58f6cd208 Update tests to run also on macOS 2023-09-11 19:25:59 +03:00
corneredrat
706bf35086 update defaultHost var name 2023-02-09 23:22:55 +05:30
corneredrat
2e0ff3d14c fix unit tests 2023-02-09 23:10:38 +05:30
corneredrat
429777eb5d fux unit tests 2023-02-09 22:14:40 +05:30
corneredrat
07317328f1 update expected results 2023-02-09 21:59:47 +05:30
corneredrat
e6ab24db7f update expected results 2023-02-09 21:38:31 +05:30
corneredrat
d88e0dda02 fix test for kube endpoints 2023-02-09 15:58:06 +05:30
corneredrat
a117c0c056 1. make vars private
2. expose endpoints via functions
3. add test cases
4. rename host addr var
2023-02-09 15:02:52 +05:30
corneredrat
83e520784b use consts 2023-02-04 22:48:49 +05:30
corneredrat
92e63b5991 move node endpoints initialization to separate section 2023-02-04 21:14:20 +05:30
corneredrat
f601956af9 name var for env keys appropriately 2023-02-01 21:43:53 +05:30
corneredrat
2415e30efe remove redundant initialization 2023-02-01 21:42:52 +05:30
corneredrat
6163859ae8 read node and port information from env varibles for kube* services 2023-02-01 14:09:07 +05:30
Michael Grosser
8578b779e2 health-checker cri: fix invalid command 2023-01-31 21:53:59 -08:00
Izaak Alpert (karlhungus)
b6d8069610 allow setting crictl timeout 2022-09-15 14:31:41 -04:00
Izaak Alpert (karlhungus)
6de3fabc9f output stdout and stderr from custom commands 2022-09-15 14:31:24 -04:00
Michael Grosser
d764b1ab87 simplify cri health check 2022-03-28 17:05:53 -07:00
michelletandya
3344efd552 ensure time is in Universal Time Zone to properly calculate uptime 2021-09-02 17:41:54 +00:00
Kubernetes Prow Robot
3c3609b5fa Merge pull request #612 from mcshooter/updateUptimeCMd
Update powershell command for uptime to help efficiency
2021-08-20 18:42:05 -07:00
michelletandya
dd0d0d71ab Update powershell command for uptime to help efficiency 2021-08-20 01:16:45 +00:00
michelletandya
26f070bfd4 Prevent uptimeFunc from being called everytime CheckHealth is being called 2021-08-17 19:30:28 +00:00
Oleg Atamanenko
c8629cea5d Check kube-proxy health on linux 2021-06-29 21:36:27 -07:00
Kubernetes Prow Robot
e349323507 Merge pull request #539 from smileusd/health_check
improvement health-checker
2021-06-25 09:48:45 -07:00
michelletandya
a14577dfa4 update CriCtl path for windows 2021-06-15 01:03:04 +00:00
tashen
a3b928467e add loopbacktime to reduce time of journalctl call 2021-05-19 13:55:55 +08:00
Lantao Liu
8e94c930ee Fix the uptime timestamp parsing. 2021-05-14 16:43:09 -07:00
michelletandya
01cd8dd08c Add healthChecker functionality for kube-proxy service 2021-05-05 17:27:58 +00:00
michelletandya
c4e5400ed6 separate linux/windows health checker files. 2021-04-26 21:45:05 +00:00
Archit Bansal
fb8bbe91d7 Fix for flaky unit test in health checker
The unit test was dependent on the order of map iteration. Changed to
using sorted keys while iterating.
2021-02-18 17:52:49 -08:00
Archit Bansal
100f2bf8e6 Make log pattern check configurable in health checker 2021-02-17 17:46:18 -08:00
Archit Bansal
2513756583 Add kubelet apiserver connection fail check in health checker 2020-11-09 12:47:16 -08:00
Archit Bansal
3a9370e01b Log custom plugin stderr only if the status is not ok.
Otherwise with plugins that run frequently and report ok status, the
logs are filled with unnecessary noise and significantly increases log
size.
2020-08-27 10:17:05 -07:00
Archit Bansal
f56d0a929d Use InactiveExitTimestamp instead of ActiveEnterTimestamp for cooldown
period in health check monitor.
2020-07-16 18:53:47 -07:00
Archit Bansal
44dc4aa6c1 Add health-check-monitor 2020-05-27 14:08:42 -07:00