[bitnami/redis] Added extraEnvVars for metrics container (#9482)

* Added extraEnvVars for metrics container

Signed-off-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com>

* Bumped chart version from 16.5.4 to 16.6.0

Signed-off-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com>
This commit is contained in:
Abhimanyu Saharan
2022-03-23 21:05:42 +05:30
committed by GitHub
parent 72a202c8fd
commit 573f241500
4 changed files with 12 additions and 1 deletions

View File

@@ -24,4 +24,4 @@ maintainers:
name: redis
sources:
- https://github.com/bitnami/bitnami-docker-redis
version: 16.5.5
version: 16.6.0

View File

@@ -423,6 +423,7 @@ The command removes all the Kubernetes components associated with the chart and
| `metrics.command` | Override default metrics container init command (useful when using custom images) | `[]` |
| `metrics.redisTargetHost` | A way to specify an alternative Redis&trade; hostname | `localhost` |
| `metrics.extraArgs` | Extra arguments for Redis&trade; exporter, for example: | `{}` |
| `metrics.extraEnvVars` | Array with extra environment variables to add to Redis&trade; exporter | `[]` |
| `metrics.containerSecurityContext.enabled` | Enabled Redis&trade; exporter containers' Security Context | `true` |
| `metrics.containerSecurityContext.runAsUser` | Set Redis&trade; exporter containers' Security Context runAsUser | `1001` |
| `metrics.extraVolumes` | Optionally specify extra list of additional volumes for the Redis&trade; metrics sidecar | `[]` |

View File

@@ -287,6 +287,9 @@ spec:
- name: REDIS_EXPORTER_TLS_CA_CERT_FILE
value: {{ template "redis.tlsCACert" . }}
{{- end }}
{{- if .Values.metrics.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.metrics.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
ports:
- name: metrics
containerPort: 9121

View File

@@ -1281,6 +1281,13 @@ metrics:
## check-keys: myKey,myOtherKey
##
extraArgs: {}
## @param metrics.extraEnvVars Array with extra environment variables to add to Redis&trade; exporter
## e.g:
## extraEnvVars:
## - name: FOO
## value: "bar"
##
extraEnvVars: []
## Configure Container Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
## @param metrics.containerSecurityContext.enabled Enabled Redis&trade; exporter containers' Security Context