diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 2bbe2a5..0c308d3 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -45,6 +45,48 @@ spec: args: - --ds-name={{ template "kured.fullname" . }} - --ds-namespace={{ .Release.Namespace }} + {{- if .Values.configuration.annotationTtl }} + - --annotation-ttl={{ .Values.configuration.annotationTtl }} + {{- end }} + {{- if .Values.configuration.alertFilterRegexp }} + - --alert-filter-regexp={{ .Values.configuration.alertFilterRegexp | quote }} + {{- end }} + {{- if .Values.configuration.blockingPodSelector }} + - --blocking-pod-selector={{ .Values.configuration.blockingPodSelector | quote }} + {{- end }} + {{- if .Values.configuration.endTime }} + - --end-time={{ .Values.configuration.endTime | quote }} + {{- end }} + {{- if .Values.configuration.lockAnnotation }} + - --lock-annotation={{ .Values.configuration.lockAnnotation | quote }} + {{- end }} + {{- if .Values.configuration.period }} + - --period={{ .Values.configuration.period | quote }} + {{- end }} + {{- if .Values.configuration.prometheusUrl }} + - --prometheus-url={{ .Values.configuration.prometheusUrl | quote }} + {{- end }} + {{- if .Values.configuration.rebootDays }} + - --reboot-days={{ .Values.configuration.rebootDays | quote }} + {{- end }} + {{- if .Values.configuration.rebootSentinel }} + - --reboot-sentinel={{ .Values.configuration.rebootSentinel | quote }} + {{- end }} + {{- if .Values.configuration.slackChannel }} + - --slack-channel={{ .Values.configuration.slackChannel | quote }} + {{- end }} + {{- if .Values.configuration.slackHookUrl }} + - --slack-hook-url={{ .Values.configuration.slackHookUrl | quote }} + {{- end }} + {{- if .Values.configuration.slackUsername }} + - --slack-username={{ .Values.configuration.slackUsername | quote }} + {{- end }} + {{- if .Values.configuration.startTime }} + - --start-time={{ .Values.configuration.startTime | quote }} + {{- end }} + {{- if .Values.configuration.timeZone }} + - --time-zone={{ .Values.configuration.timeZone | quote }} + {{- end }} {{- range $key, $value := .Values.extraArgs }} {{- if $value }} - --{{ $key }}={{ $value }} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index 30211b0..f1c9e04 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -6,6 +6,22 @@ image: extraArgs: {} +configuration: + annotationTtl: 0 # force clean annotation after this ammount of time (default 0, disabled) + alertFilterRegexp: "" # alert names to ignore when checking for active alerts + blockingPodSelector: [] # label selector identifying pods whose presence should prevent reboots + endTime: "" # only reboot before this time of day (default "23:59") + lockAnnotation: "" # annotation in which to record locking node (default "weave.works/kured-node-lock") + period: "" # reboot check period (default 1h0m0s) + prometheusUrl: "" # Prometheus instance to probe for active alerts + 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") + slackChannel: "" # slack channel for reboot notfications + slackHookUrl: "" # slack hook URL for reboot notfications + slackUsername: "" # slack username for reboot notfications (default "kured") + startTime: "" # only reboot after this time of day (default "0:00") + timeZone: "" # time-zone to use (valid zones from "time" golang package) + rbac: create: true