Skip to content

Commit

Permalink
make liveness and readiness probe configurable (helm#13311)
Browse files Browse the repository at this point in the history
Signed-off-by: Maarten de Waard <maarten@greenhost.nl>

Update chart version number, document liveness and readiness variables

Signed-off-by: Maarten de Waard <maarten@greenhost.nl>

make liveness and readiness probe configurable
  • Loading branch information
mrtndwrd authored and k8s-ci-robot committed Apr 26, 2019
1 parent cddc416 commit 175e4ad
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stable/collabora-code/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "4.0.3.1"
description: A Helm chart for Collabora Office - CODE-Edition
name: collabora-code
version: 1.0.1
version: 1.0.2
icon: https://avatars0.githubusercontent.com/u/22418908?s=200&v=4
sources:
- https://github.com/CollaboraOnline/Docker-CODE
Expand Down
14 changes: 13 additions & 1 deletion stable/collabora-code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,19 @@ The following tables lists the configurable parameters of this chart and their d
| `ingress.paths` | | `[]` |
| `ingress.hosts` | | `[]` |
| `ingress.tls` | | `[]` |
| `securityContext.allowPrivilegeEscalation` | Create & use Pod Security Policy resources | `true` |
| `livenessProbe.enabled` | Turn on and off liveness probe | `true` |
| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` |
| `livenessProbe.periodSeconds` | How often to perform the probe | `10` |
| `livenessProbe.timeoutSeconds` | When the probe times out | `2` |
| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe | `1` |
| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe | `3` |
| `readinessProbe.enabled` | Turn on and off readiness probe | `true` |
| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `30` |
| `readinessProbe.periodSeconds` | How often to perform the probe | `10` |
| `readinessProbe.timeoutSeconds` | When the probe times out | `2` |
| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe | `1` |
| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe | `3` |
| `securityContext.allowPrivilegeEscalation` | Create & use Pod Security Policy resources | `true` |
| `securitycontext.capabilities.add` | Collabora needs to run with MKNOD as capabibility | `[MKNOD]` |
| `resources` | Resources required (e.g. CPU, memory) | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
Expand Down
22 changes: 14 additions & 8 deletions stable/collabora-code/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,32 @@ spec:
secretKeyRef:
name: {{ include "collabora-code.fullname" . }}
key: password
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
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:
failureThreshold: 3
httpGet:
path: /
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
16 changes: 16 additions & 0 deletions stable/collabora-code/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,19 @@ nodeSelector: {}
tolerations: []

affinity: {}

livenessProbe:
enabled: true
initialDelaySeconds: 30
timeoutSeconds: 2
periodSeconds: 10
successThreshold: 1
failureThreshold: 3

readinessProbe:
enabled: true
initialDelaySeconds: 30
timeoutSeconds: 2
periodSeconds: 10
successThreshold: 1
failureThreshold: 3

0 comments on commit 175e4ad

Please sign in to comment.