Michal Schott
59a6700add
Renaming flag as suggested.
2020-05-05 20:52:10 +02:00
Michal Schott
64ebf53264
Typo in logic.
2020-05-05 14:32:41 +02:00
Michal Schott
1257d97ead
Be clean when this feature is disabled.
2020-05-05 14:10:23 +02:00
Michal Schott
7fb16fed9b
Adding annotationTTL.
2020-05-05 14:10:22 +02:00
Daniel Holbach
8e73cf224d
Revert parts of #127 , move to client-go/kubectl 1.17
...
After the release of kured 1.4.0 we should be able to go back.
This was decided in our meeting
(https://docs.google.com/document/d/1bsHTjHhqaaZ7yJnXF6W8c89UB_yn-OoSZEmDnIP34n8/edit#heading=h.8cgszb6vuhza )
Let's go with supporting 1.1[678] in this release.
2020-04-22 18:32:25 +02:00
Carlos Garcia Lalicata
800e9e19fb
pring node id when commanding reboot, so that any monitoring tool can catch it and act on it
2020-04-20 10:58:35 +02:00
Jean-Philippe Evrard
bdd20c963c
Unpin base docker images
...
The upside is that image building will always use the latest
stable version of the alpine OS, which might include security fixes.
The downside is that it's less reproducible, because the full
version isn't given.
While this commit isn't necessary per se, it's nice to have
an image that will be up to date, when we'll build it.
2020-04-08 18:17:58 +02:00
Daniel Holbach
0a419d0d34
update to 1.18.0 API
...
confirmed by running https://github.com/kubernetes-sigs/clientgofix
closes : #123
2020-03-30 10:11:30 +02:00
Daniel Holbach
b75aec87d7
update urls to match k8s 1.18 release
2020-03-30 10:11:30 +02:00
Peter Groenewegen
7e7430f7df
Keeping alpine fresh
...
Updating alpine to the latest version.
Tested this version of alpine and running fine, keeping versions of dependencies up to date.
2020-02-25 11:09:28 -08:00
Daniel Holbach
7975a78025
update to latest kubectl 1.15
2020-02-21 16:11:10 +01:00
Peter Groenewegen
f86514c1e6
Use newer version of k8s client tools
...
The version of k8s has security vulnerabilities, updating to a newer version
Tested this this version to on our clusters
2020-02-19 07:55:03 -08:00
Praveen Adusumilli
f2ae01120a
Upgrading to latest alpine ( #100 )
...
* Upgrading to latest alpine 3.10.3
2019-11-26 16:53:43 +00:00
Nighthawk22
5c21206bdb
Merge branch 'master' into master
2019-10-28 10:56:13 +01:00
leigh capili
4beddb5338
Reboot only within time window specified on commandline ( #66 )
...
Reboot only within time window specified on commandline
2019-10-23 22:23:51 -06:00
Maximilian Zollneritsch
d1315c691e
Added slack channel name configuration
2019-09-11 13:59:09 +02:00
Adam Harrison
8d809333b3
Update embedded kubectl to v1.14.1
2019-05-16 17:07:17 +01:00
Adam Harrison
556789e6c7
Update embedded kubectl to v1.13.6
2019-05-16 10:51:51 +01:00
JJ Jordan
357687b053
Fix seconds format in parser, address (an unimportant) corner case
2019-04-18 18:00:29 -07:00
JJ Jordan
3a89e3e058
Add documentation section, params to daemonset, tzdata to docker container
2019-04-09 18:02:11 -07:00
JJ Jordan
972ef4240b
Comment
2019-04-04 01:06:03 -07:00
JJ Jordan
334437cdc0
Improve help strings (?)
2019-04-04 01:04:39 -07:00
JJ Jordan
7d85e85db0
weekdays to use a bitmap, add (minimal) tests
2019-04-04 01:02:27 -07:00
JJ Jordan
3f6713fa65
More forgiving inputs
2019-04-02 01:28:59 -07:00
JJ Jordan
170a3a4bac
Use time window
2019-04-02 01:23:33 -07:00
Adam Harrison
f6f9e7492c
Allow selected pods to prevent reboots
2018-11-21 15:03:29 +00:00
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