Usage of /usr/bin/kured:
--alert-filter-match-only Only block if the alert-filter-regexp matches active alerts
--alert-filter-regexp regexp alert names to ignore when checking for active alerts
--alert-firing-only only consider firing alerts when checking for active alerts
--annotate-nodes if set, the annotations 'weave.works/kured-reboot-in-progress' and 'weave.works/kured-most-recent-reboot-needed' will be given to nodes undergoing kured reboots
--blocking-pod-selector stringArray label selector identifying pods whose presence should prevent reboots
--concurrency int amount of nodes to concurrently reboot. Defaults to 1 (default 1)
--drain-delay duration delay drain for this duration (default: 0, disabled)
--drain-grace-period int time in seconds given to each pod to terminate gracefully, if negative, the default value specified in the pod will be used (default -1)
--drain-pod-selector string only drain pods with labels matching the selector (default: '', all pods)
--drain-timeout duration timeout after which the drain is aborted (default: 0, infinite time)
--ds-name string name of daemonset on which to place lock (default "kured")
--ds-namespace string namespace containing daemonset on which to place lock (default "kube-system")
--end-time string schedule reboot only before this time of day (default "23:59:59")
--force-reboot force a reboot even if the drain fails or times out
--lock-annotation string annotation in which to record locking node (default "weave.works/kured-node-lock")
--lock-release-delay duration delay lock release for this duration (default: 0, disabled)
--lock-ttl duration expire lock annotation after this duration (default: 0, disabled)
--log-format string use text or json log format (default "text")
--message-template-drain string message template used to notify about a node being drained (default "Draining node %s")
--message-template-reboot string message template used to notify about a node being rebooted (default "Rebooting node %s")
--message-template-uncordon string message template used to notify about a node being successfully uncordoned (default "Node %s rebooted & uncordoned successfully!")
--metrics-host string host where metrics will listen
--metrics-port int port number where metrics will listen (default 8080)
--node-id string node name kured runs on, should be passed down from spec.nodeName via KURED_NODE_ID environment variable
--notify-url string notify URL for reboot notifications (cannot use with --slack-hook-url flags)
--period duration sentinel check period (default 1h0m0s)
--post-reboot-node-labels strings labels to add to nodes after uncordoning
--pre-reboot-node-labels strings labels to add to nodes before cordoning
--prefer-no-schedule-taint string Taint name applied during pending node reboot (to prevent receiving additional pods from other rebooting nodes). Disabled by default. Set e.g. to "weave.works/kured-node-reboot" to enable tainting.
--prometheus-url string Prometheus instance to probe for active alerts
--reboot-command string command to run when a reboot is required (default "/bin/systemctl reboot")
--reboot-days strings schedule reboot on these days (default [su,mo,tu,we,th,fr,sa])
--reboot-delay duration delay reboot for this duration (default: 0, disabled)
--reboot-method string method to use for reboots. Available: command (default "command")
--reboot-sentinel string path to file whose existence triggers the reboot command (default "/var/run/reboot-required")
--reboot-sentinel-command string command for which a zero return code will trigger a reboot command
--reboot-signal int signal to use for reboot, SIGRTMIN+5 by default. (default 39)
--skip-wait-for-delete-timeout int when seconds is greater than zero, skip waiting for the pods whose deletion timestamp is older than N seconds while draining a node
--slack-channel string slack channel for reboot notifications
--slack-hook-url string slack hook URL for reboot notifications [deprecated in favor of --notify-url]
--slack-username string slack username for reboot notifications (default "kured")
--start-time string schedule reboot only after this time of day (default "0:00")
--time-zone string use this timezone for schedule inputs (default "UTC")
Options (43)
| Option | Description | Source |
|---|---|---|
--alert-filter-match-only | Only block if the alert-filter-regexp matches active alerts | help |
--alert-filter-regexp regexp | alert names to ignore when checking for active alerts | help |
--alert-firing-only | only consider firing alerts when checking for active alerts | help |
--annotate-nodes | if set, the annotations 'weave.works/kured-reboot-in-progress' and 'weave.works/kured-most-recent-reboot-needed' will be given to nodes undergoing kured reboots | help |
--blocking-pod-selector stringArray | label selector identifying pods whose presence should prevent reboots | help |
--concurrency int | amount of nodes to concurrently reboot. | help |
--drain-delay duration | delay drain for this duration (default: 0, disabled) | help |
--drain-grace-period int | time in seconds given to each pod to terminate gracefully, if negative, the default value specified in the pod will be used (default -1) | help |
--drain-pod-selector string | only drain pods with labels matching the selector (default: '', all pods) | help |
--drain-timeout duration | timeout after which the drain is aborted (default: 0, infinite time) | help |
--ds-name string | name of daemonset on which to place lock (default "kured") | help |
--ds-namespace string | namespace containing daemonset on which to place lock (default "kube-system") | help |
--end-time string | schedule reboot only before this time of day (default "23:59:59") | help |
--force-reboot | force a reboot even if the drain fails or times out | help |
--lock-annotation string | annotation in which to record locking node (default "weave.works/kured-node-lock") | help |
--lock-release-delay duration | delay lock release for this duration (default: 0, disabled) | help |
--lock-ttl duration | expire lock annotation after this duration (default: 0, disabled) | help |
--log-format string | use text or json log format (default "text") | help |
--message-template-drain string | message template used to notify about a node being drained (default "Draining node %s") | help |
--message-template-reboot string | message template used to notify about a node being rebooted (default "Rebooting node %s") | help |
--message-template-uncordon string | message template used to notify about a node being successfully uncordoned (default "Node %s rebooted & uncordoned successfully!") | help |
--metrics-host string | host where metrics will listen | help |
--metrics-port int | port number where metrics will listen (default 8080) | help |
--node-id string | node name kured runs on, should be passed down from spec.nodeName via KURED_NODE_ID environment variable | help |
--notify-url string | notify URL for reboot notifications (cannot use with --slack-hook-url flags) | help |
--period duration | sentinel check period (default 1h0m0s) | help |
--post-reboot-node-labels strings | labels to add to nodes after uncordoning | help |
--pre-reboot-node-labels strings | labels to add to nodes before cordoning | help |
--prefer-no-schedule-taint string | Taint name applied during pending node reboot (to prevent receiving additional pods from other rebooting nodes). | help |
--prometheus-url string | Prometheus instance to probe for active alerts | help |
--reboot-command string | command to run when a reboot is required (default "/bin/systemctl reboot") | help |
--reboot-days strings | schedule reboot on these days (default [su,mo,tu,we,th,fr,sa]) | help |
--reboot-delay duration | delay reboot for this duration (default: 0, disabled) | help |
--reboot-method string | method to use for reboots. | help |
--reboot-sentinel string | path to file whose existence triggers the reboot command (default "/var/run/reboot-required") | help |
--reboot-sentinel-command string | command for which a zero return code will trigger a reboot command | help |
--reboot-signal int | signal to use for reboot, SIGRTMIN+5 by default. | help |
--skip-wait-for-delete-timeout int | when seconds is greater than zero, skip waiting for the pods whose deletion timestamp is older than N seconds while draining a node | help |
--slack-channel string | slack channel for reboot notifications | help |
--slack-hook-url string | slack hook URL for reboot notifications [deprecated in favor of --notify-url] | help |
--slack-username string | slack username for reboot notifications (default "kured") | help |
--start-time string | schedule reboot only after this time of day (default "0:00") | help |
--time-zone string | use this timezone for schedule inputs (default "UTC") | help |