diff --git a/charts/kured/README.md b/charts/kured/README.md index 7a39482..b061fe7 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -81,6 +81,7 @@ The following changes have been made compared to the stable chart: | `dsAnnotations` | Annotations to apply to the kured DaemonSet | `{}` | | `extraArgs` | Extra arguments to pass to `/usr/bin/kured`. See below. | `{}` | | `extraEnvVars` | Array of environment variables to pass to the daemonset. | `{}` | +| `metricsHost` | Host to expose the metrics endpoint. | `""` | | `metricsPort` | Port to expose the metrics endpoint. | `8080` | | `configuration.lockTtl` | cli-parameter `--lock-ttl` | `0` | | `configuration.lockReleaseDelay` | cli-parameter `--lock-release-delay` | `0` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 3232e5e..2081fff 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -66,6 +66,9 @@ spec: args: - --ds-name={{ template "kured.fullname" . }} - --ds-namespace={{ .Release.Namespace }} + {{- if .Values.configuration.metricsHost }} + - --metrics-host={{ .Values.configuration.metricsHost }} + {{- end }} {{- if .Values.configuration.metricsPort }} - --metrics-port={{ .Values.configuration.metricsPort }} {{- end }} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index b8f881b..af1a4a5 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -25,6 +25,7 @@ extraEnvVars: # value: 123 configuration: + metricsHost: "" # host where metrics will listen metricsPort: 8080 # port number where metrics will listen lockTtl: 0 # force clean annotation after this amount of time (default 0, disabled) alertFilterRegexp: "" # alert names to ignore when checking for active alerts