Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow greater control over probes #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions charts/flowable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ The following tables lists the configurable parameters of the Flowable chart and
| `rest.resources.limits.cpu` | Kubernetes CPU limit | `1` |
| `rest.resources.limits.memory` | Kubernetes memory limit | `1Gi` |
| `rest.resources.javaOpts` | JVM options | `-Xmx1g -Xms1g` |
| `rest.admin.username` | Admin user to create | `rest-admin` |
| `rest.admin.password` | Password for admin user | `test` |
| `rest.readinessProbe.initialDelaySeconds` | Time to allow pod to start before first probe | `60` |
| `rest.readinessProbe.periodSeconds` | Time between probes | `10` |
| `rest.readinessProbe.timeoutSeconds` | Time allowed for pod to respond to probe | `5` |
| `rest.readinessProbe.successThreshold` | Number of successful probes before marking pod ready | `1` |
| `rest.readinessProbe.failureThreshold` | Number of failed probes before recycling the pod | `3` |
| `rest.livenessProbe.initialDelaySeconds` | Time to allow pod to start before first probe | `60` |
| `rest.livenessProbe.periodSeconds` | Time between probes | `10` |
| `rest.livenessProbe.timeoutSeconds` | Time allowed for pod to respond to probe | `10` |
| `rest.livenessProbe.successThreshold` | Number of successful probes before marking pod live | `1` |
| `rest.livenessProbe.failureThreshold` | Number of failed probes before recycling the pod | `10` |
|<br/>|
| `postgres.enabled` | Will deploy and configure a PostgreSQL database instance | `true` |
| `postgres.service.name` | Kubernetes service name | `flowable-postgres` |
Expand Down
9 changes: 7 additions & 2 deletions charts/flowable/templates/rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ spec:
### generate new with; echo -n "<username:<passwd>" | base64
#value: Basic cmVzdC1hZG1pbjp0ZXN0
value: Basic: {{- printf "%s:%s" .Values.rest.admin.username .Values.rest.admin.password | b64enc }}
initialDelaySeconds: 60
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.rest.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.rest.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.rest.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.rest.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.rest.readinessProbe.failureThreshold }}
livenessProbe:
httpGet:
path: {{ .Values.rest.contextPath }}/actuator/health
Expand All @@ -52,7 +55,9 @@ spec:
#value: Basic cmVzdC1hZG1pbjp0ZXN0
value: Basic: {{- printf "%s:%s" .Values.rest.admin.username .Values.rest.admin.password | b64enc }}
initialDelaySeconds: {{ .Values.rest.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.rest.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.rest.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.rest.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.rest.livenessProbe.failureThreshold }}
envFrom:
- configMapRef:
Expand Down
8 changes: 8 additions & 0 deletions charts/flowable/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,17 @@ rest:
admin:
username: rest-admin
password: test
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 10

postgres:
Expand Down