adding additional env variable for redis (#7482)

Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
This commit is contained in:
Karthikeyan Govindaraj
2018-09-02 09:44:29 -07:00
committed by k8s-ci-robot
parent 903abc4189
commit cab871aaaf
4 changed files with 12 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.3.0
version: 0.3.1
home: https://github.com/oliver006/redis_exporter
sources:
- https://github.com/oliver006/redis_exporter
@@ -47,6 +47,7 @@ The following table lists the configurable parameters and their default values.
| `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)| {}
| `env` | additional environment variables in YAML format. Can be used to pass credentials as env variables (via secret) as per the image readme [here](https://github.com/oliver006/redis_exporter#environment-variables) | {} |
| `resources` | cpu/memory resource requests/limits | {} |
| `service.type` | desired service type | `ClusterIP` |
| `service.port` | service external port | `9121` |
@@ -36,6 +36,9 @@ spec:
env:
- name: REDIS_ADDR
value: {{ .Values.redisAddress }}
{{- if .Values.env }}
{{ toYaml .Values.env | indent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /
@@ -16,6 +16,13 @@ image:
tag: v0.16.0
pullPolicy: IfNotPresent
extraArgs: {}
# Additional Environment variables
env: {}
# - name: REDIS_PASSWORD
# valueFrom:
# secretKeyRef:
# key: redis-password
# name: redis-config-0.0.2
service:
type: ClusterIP
port: 9121