add option to supply extra arguments (#6516)

This is particularly useful for monitoring specific keys with `--check-keys`.
This commit is contained in:
Michael Raimondi
2018-07-25 10:38:58 -07:00
committed by k8s-ci-robot
parent e658ef4209
commit cbd51d698b
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.16.0
description: Prometheus exporter for Redis metrics
name: prometheus-redis-exporter
version: 0.2.0
version: 0.3.0
home: https://github.com/oliver006/redis_exporter
sources:
- https://github.com/oliver006/redis_exporter
@@ -46,6 +46,7 @@ The following table lists the configurable parameters and their default values.
| `image.repository` | prometheus-redis-exporter image repository | `oliver006/redis_exporter`|
| `image.tag` | prometheus-redis-exporter image tag | `v0.16.0` |
| `image.pullPolicy` | image pull policy | `IfNotPresent` |
| `extraArgs` | extra arguments for the binary; possible values [here](https://github.com/oliver006/redis_exporter#flags)| {}
| `resources` | cpu/memory resource requests/limits | {} |
| `service.type` | desired service type | `ClusterIP` |
| `service.port` | service external port | `9121` |
@@ -26,6 +26,10 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
ports:
- name: exporter-port
containerPort: 9121
@@ -15,6 +15,7 @@ image:
repository: oliver006/redis_exporter
tag: v0.16.0
pullPolicy: IfNotPresent
extraArgs: {}
service:
type: ClusterIP
port: 9121