diff --git a/README.md b/README.md index 26a3d4d..f92ee18 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ Flags: --prometheus-url string Prometheus instance to probe for active alerts --reboot-command string command to run when a reboot is required by the sentinel (default "/sbin/systemctl reboot") --reboot-days strings schedule reboot on these days (default [su,mo,tu,we,th,fr,sa]) + --reboot-delay duration add a delay after drain finishes but before the reboot command is issued (default 0, no time) --reboot-sentinel string path to file whose existence signals need to reboot (default "/var/run/reboot-required") --reboot-sentinel-command string command for which a successful run signals need to reboot (default ""). If non-empty, sentinel file will be ignored. --slack-channel string slack channel for reboot notfications diff --git a/charts/kured/README.md b/charts/kured/README.md index 3f1eb04..d660930 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -60,6 +60,7 @@ The following changes have been made compared to the stable chart: | `configuration.rebootDays` | Array of days for multiple cli-parameters `--reboot-days` | `[]` | | `configuration.rebootSentinel` | cli-parameter `--reboot-sentinel` | `""` | | `configuration.rebootCommand` | cli-parameter `--reboot-command` | `""` | +| `configuration.rebootDelay` | cli-parameter `--reboot-delay` | `""` | | `configuration.slackChannel` | cli-parameter `--slack-channel` | `""` | | `configuration.slackHookUrl` | cli-parameter `--slack-hook-url` | `""` | | `configuration.slackUsername` | cli-parameter `--slack-username` | `""` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 43cb9ba..2de3d57 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -100,6 +100,9 @@ spec: {{- if .Values.configuration.rebootCommand }} - --reboot-command={{ .Values.configuration.rebootCommand }} {{- end }} + {{- if .Values.configuration.rebootDelay }} + - --reboot-delay={{ .Values.configuration.rebootDelay }} + {{- end }} {{- if .Values.configuration.slackChannel }} - --slack-channel={{ .Values.configuration.slackChannel }} {{- end }} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index 885a1cb..f402137 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -37,6 +37,7 @@ configuration: rebootDays: [] # only reboot on these days (default [su,mo,tu,we,th,fr,sa]) rebootSentinel: "" # path to file whose existence signals need to reboot (default "/var/run/reboot-required") rebootCommand: "/bin/systemctl reboot" # command to run when a reboot is required by the sentinel + rebootDelay: "" # add a delay after drain finishes but before the reboot command is issued slackChannel: "" # slack channel for reboot notfications slackHookUrl: "" # slack hook URL for reboot notfications slackUsername: "" # slack username for reboot notfications (default "kured") diff --git a/kured-ds.yaml b/kured-ds.yaml index 8acad86..26ee61e 100644 --- a/kured-ds.yaml +++ b/kured-ds.yaml @@ -69,6 +69,7 @@ spec: # - --blocking-pod-selector=name=temperamental # - --blocking-pod-selector=... # - --reboot-days=sun,mon,tue,wed,thu,fri,sat +# - --reboot-delay=90s # - --start-time=0:00 # - --end-time=23:59:59 # - --time-zone=UTC