Commit Graph

17 Commits

Author SHA1 Message Date
Adam Harrison
0cd450b7bc Enter host mount namespace
Use the tools installed in the host to effect reboots, and allow
the execution of commands such as `needs-restart` to determine if
reboots are required.
2018-10-30 11:58:22 +00:00
Adam Harrison
4322c3212a Update embedded kubectl to v1.12.1 2018-10-26 12:50:08 +01:00
Marcus Cobden
ebf0fb5119 Notify slack before draining a node
Fixes #12
2018-09-04 14:37:34 +01:00
Adam Harrison
5731b98a8a Add warning to Dockerfile re: upgrading kubectl 2018-06-05 18:00:02 +01:00
Adam Harrison
826fcd2998 Bundle latest v1.10.x kubectl 2018-06-05 17:06:17 +01:00
Adam Harrison
d7b9c9fbec Embed kubectl v1.9.6 for draining 2018-04-10 14:09:47 +01:00
Adam Harrison
a788809162 Log stdout/stderr from kubectl/systemctl invocations 2018-04-10 14:04:25 +01:00
Mike Rostermund
8f816562a4 Set variables based on correct arguments w.r.t. name of daemonset and namespace. 2017-11-17 13:35:25 +01:00
Adam Harrison
adf8147ab6 Pin base image to 16.04 2017-09-22 14:52:20 +01:00
Adam Harrison
b0259b6c17 Remove obsolete waitForDrain implementation
`kubectl drain` now ignores undrainable things and waits for
termination, so we no longer have to do that ourselves.
2017-09-22 14:22:19 +01:00
Adam Harrison
156e9a1cd8 Upgrade client-go and kubectl to 1.7.x 2017-09-21 17:19:54 +01:00
Adam Harrison
6e44cb1342 Implement kured_reboot_required metric 2017-09-21 11:46:06 +01:00
Adam Harrison
91bf84a90d Convert period arg to time.Duration 2017-09-21 09:59:55 +01:00
Adam Harrison
80a254ec1d Improved active alert detection and logging
Zero-valued alerts are now ignored, and the names of the first ten
blocking alerts are logged for diagnostic purposes.
2017-09-20 14:27:22 +01:00
Adam Harrison
1a6e814a21 Basic slack notification support 2017-08-16 09:55:34 +01:00
Adam Harrison
55ba779702 Move test for node schedulability
Test for schedulability immediately prior to each reboot check instead
of once at startup, thereby accomodating external changes to this value
during the lifetime of the daemon.
2017-08-03 08:53:24 +01:00
Adam Harrison
8aafc8905e Initial implementation 2017-06-13 17:57:19 +01:00