[stable/redmine] adds configurable liveness and readiness probes (#18968)

* [stable/redmine] adds configurable health checks

Signed-off-by: Dmitrii Ermakov <demonihin@gmail.com>
Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>

* [stable/redmine] adds newline to values.yaml

Signed-off-by: Dmitrii Ermakov <demonihin@gmail.com>
Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>

* [stable/redmine] sets description to common format

Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>

* [stable/redmine] documents probes parameters

Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>

* [stable/redmine] version increase

Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>

* [stable/redmine] Increments version

Signed-off-by: Dmitriy Ermakov <demonihin@gmail.com>
This commit is contained in:
Dmitrii Ermakov
2019-11-22 03:57:29 -08:00
committed by Kubernetes Prow Robot
parent ba87254be9
commit 7034f82c1b
4 changed files with 47 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: redmine
version: 13.4.0
version: 13.5.0
appVersion: 4.0.5
description: A flexible project management web application.
keywords:
+12 -1
View File
@@ -123,7 +123,18 @@ The following table lists the configurable parameters of the Redmine chart and t
| `podDisruptionBudget.maxUnavailable`| Maximum unavailable pods | `nil` |
| `replicas` | The number of pod replicas | `1` |
| `resources` | Resources allocation (Requests and Limits) | `{}` |
| `securityContext` | Security Context | `{}` |
| `livenessProbe.enabled` | would you like a livenessProbe to be enabled | `true` |
| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 300 |
| `livenessProbe.periodSeconds` | How often to perform the probe | 10 |
| `livenessProbe.timeoutSeconds` | When the probe times out | 5 |
| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 3 |
| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` |
| `readinessProbe.initialDelaySeconds`| Delay before readiness probe is initiated | 5 |
| `readinessProbe.periodSeconds` | How often to perform the probe | 10 |
| `readinessProbe.timeoutSeconds` | When the probe times out | 1 |
| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 |
| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 3 |
The above parameters map to the env variables defined in [bitnami/redmine](http://github.com/bitnami/bitnami-docker-redmine). For more information please refer to the [bitnami/redmine](http://github.com/bitnami/bitnami-docker-redmine) image documentation.
+14 -4
View File
@@ -131,18 +131,28 @@ spec:
ports:
- name: http
containerPort: 3000
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 300
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
timeoutSeconds: 1
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}
volumeMounts:
- name: redmine-data
mountPath: /bitnami/redmine
+20 -3
View File
@@ -301,7 +301,24 @@ resources: {}
# cpu: "2"
# memory: "1G"
## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
## Configure extra options for liveness probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
##
securityContext: {}
livenessProbe:
enabled: true
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
## Configure extra options for readiness probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
##
readinessProbe:
enabled: true
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3