Skip to content

Commit

Permalink
Adds new flag --metrics-host to chart (#50)
Browse files Browse the repository at this point in the history
kubereboot/kured#811

Signed-off-by: Nathan Kinkade <[email protected]>
Signed-off-by: Christian Kotzbauer <[email protected]>
Co-authored-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
nkinkade and ckotzbauer authored Aug 19, 2023
1 parent 544f822 commit 3763d87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kured/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
3 changes: 3 additions & 0 deletions charts/kured/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/kured/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3763d87

Please sign in to comment.