mirror of
https://github.com/bitnami/charts.git
synced 2026-04-02 15:27:08 +08:00
[bitnami/redis] add probes for metrics container (#14420)
* add probes for metrics container Signed-off-by: André Bauer <andre.bauer@staffbase.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * use template Signed-off-by: André Bauer <andre.bauer@staffbase.com> * remove superfluous lines Signed-off-by: André Bauer <andre.bauer@staffbase.com> * remove comments Signed-off-by: André Bauer <andre.bauer@staffbase.com> * fix custome probe comments Signed-off-by: André Bauer <andre.bauer@staffbase.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * set startupProbe enbaled false Signed-off-by: André Bauer <andre.bauer@staffbase.com> * set version 17.5.0 Signed-off-by: André Bauer <andre.bauer@staffbase.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * remove lines Signed-off-by: André Bauer <andre.bauer@staffbase.com> Signed-off-by: André Bauer <andre.bauer@staffbase.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -22,4 +22,4 @@ maintainers:
|
|||||||
name: redis
|
name: redis
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/bitnami/containers/tree/main/bitnami/redis
|
- https://github.com/bitnami/containers/tree/main/bitnami/redis
|
||||||
version: 17.4.3
|
version: 17.5.0
|
||||||
|
|||||||
@@ -454,6 +454,27 @@ The command removes all the Kubernetes components associated with the chart and
|
|||||||
| `metrics.image.digest` | Redis® Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
|
| `metrics.image.digest` | Redis® Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
|
||||||
| `metrics.image.pullPolicy` | Redis® Exporter image pull policy | `IfNotPresent` |
|
| `metrics.image.pullPolicy` | Redis® Exporter image pull policy | `IfNotPresent` |
|
||||||
| `metrics.image.pullSecrets` | Redis® Exporter image pull secrets | `[]` |
|
| `metrics.image.pullSecrets` | Redis® Exporter image pull secrets | `[]` |
|
||||||
|
| `metrics.startupProbe.enabled` | Enable startupProbe on Redis® replicas nodes | `false` |
|
||||||
|
| `metrics.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
|
||||||
|
| `metrics.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
|
||||||
|
| `metrics.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` |
|
||||||
|
| `metrics.startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` |
|
||||||
|
| `metrics.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
|
||||||
|
| `metrics.livenessProbe.enabled` | Enable livenessProbe on Redis® replicas nodes | `true` |
|
||||||
|
| `metrics.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `10` |
|
||||||
|
| `metrics.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
|
||||||
|
| `metrics.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` |
|
||||||
|
| `metrics.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` |
|
||||||
|
| `metrics.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
|
||||||
|
| `metrics.readinessProbe.enabled` | Enable readinessProbe on Redis® replicas nodes | `true` |
|
||||||
|
| `metrics.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` |
|
||||||
|
| `metrics.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
|
||||||
|
| `metrics.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` |
|
||||||
|
| `metrics.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `3` |
|
||||||
|
| `metrics.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
|
||||||
|
| `metrics.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` |
|
||||||
|
| `metrics.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
|
||||||
|
| `metrics.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` |
|
||||||
| `metrics.command` | Override default metrics container init command (useful when using custom images) | `[]` |
|
| `metrics.command` | Override default metrics container init command (useful when using custom images) | `[]` |
|
||||||
| `metrics.redisTargetHost` | A way to specify an alternative Redis® hostname | `localhost` |
|
| `metrics.redisTargetHost` | A way to specify an alternative Redis® hostname | `localhost` |
|
||||||
| `metrics.extraArgs` | Extra arguments for Redis® exporter, for example: | `{}` |
|
| `metrics.extraArgs` | Extra arguments for Redis® exporter, for example: | `{}` |
|
||||||
|
|||||||
@@ -306,6 +306,30 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: 9121
|
containerPort: 9121
|
||||||
|
{{- if not .Values.diagnosticMode.enabled }}
|
||||||
|
{{- if .Values.metrics.customStartupProbe }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customStartupProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.startupProbe.enabled }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.startupProbe "enabled") "context" $) | nindent 12 }}
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customLivenessProbe }}
|
||||||
|
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.livenessProbe.enabled }}
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customReadinessProbe }}
|
||||||
|
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customReadinessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.readinessProbe.enabled }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.metrics.resources }}
|
{{- if .Values.metrics.resources }}
|
||||||
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -321,6 +321,30 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: 9121
|
containerPort: 9121
|
||||||
|
{{- if not .Values.diagnosticMode.enabled }}
|
||||||
|
{{- if .Values.metrics.customStartupProbe }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customStartupProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.startupProbe.enabled }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.startupProbe "enabled") "context" $) | nindent 12 }}
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customLivenessProbe }}
|
||||||
|
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.livenessProbe.enabled }}
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customReadinessProbe }}
|
||||||
|
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customReadinessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.readinessProbe.enabled }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.metrics.resources }}
|
{{- if .Values.metrics.resources }}
|
||||||
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -529,6 +529,30 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: 9121
|
containerPort: 9121
|
||||||
|
{{- if not .Values.diagnosticMode.enabled }}
|
||||||
|
{{- if .Values.metrics.customStartupProbe }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customStartupProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.startupProbe.enabled }}
|
||||||
|
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.startupProbe "enabled") "context" $) | nindent 12 }}
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customLivenessProbe }}
|
||||||
|
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customLivenessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.livenessProbe.enabled }}
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.customReadinessProbe }}
|
||||||
|
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customReadinessProbe "context" $) | nindent 12 }}
|
||||||
|
{{- else if .Values.metrics.readinessProbe.enabled }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.metrics.resources }}
|
{{- if .Values.metrics.resources }}
|
||||||
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1412,6 +1412,59 @@ metrics:
|
|||||||
## - myRegistryKeySecretName
|
## - myRegistryKeySecretName
|
||||||
##
|
##
|
||||||
pullSecrets: []
|
pullSecrets: []
|
||||||
|
## Configure extra options for Redis® containers' liveness, readiness & startup probes
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||||
|
## @param metrics.startupProbe.enabled Enable startupProbe on Redis® replicas nodes
|
||||||
|
## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
|
||||||
|
## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
|
||||||
|
## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
|
||||||
|
## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
|
||||||
|
## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
|
||||||
|
##
|
||||||
|
startupProbe:
|
||||||
|
enabled: false
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
## @param metrics.livenessProbe.enabled Enable livenessProbe on Redis® replicas nodes
|
||||||
|
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
|
||||||
|
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
|
||||||
|
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
|
||||||
|
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
|
||||||
|
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
|
||||||
|
##
|
||||||
|
livenessProbe:
|
||||||
|
enabled: true
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
## @param metrics.readinessProbe.enabled Enable readinessProbe on Redis® replicas nodes
|
||||||
|
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
|
||||||
|
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
|
||||||
|
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
|
||||||
|
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
|
||||||
|
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
|
||||||
|
##
|
||||||
|
readinessProbe:
|
||||||
|
enabled: true
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
|
||||||
|
##
|
||||||
|
customStartupProbe: {}
|
||||||
|
## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
|
||||||
|
##
|
||||||
|
customLivenessProbe: {}
|
||||||
|
## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
|
||||||
|
##
|
||||||
|
customReadinessProbe: {}
|
||||||
## @param metrics.command Override default metrics container init command (useful when using custom images)
|
## @param metrics.command Override default metrics container init command (useful when using custom images)
|
||||||
##
|
##
|
||||||
command: []
|
command: []
|
||||||
|
|||||||
Reference in New Issue
Block a user