Skip to content

Commit

Permalink
Merge pull request #72 from Signalen/feature/configurable_liveness_pr…
Browse files Browse the repository at this point in the history
…obes4backend

Feature/configurable liveness probes4backend
  • Loading branch information
Naroj authored Feb 12, 2024
2 parents 74342ca + f9f0865 commit ad11240
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: backend
description: The API for the Signals application
type: application
version: 4.13.2
version: 4.13.3
appVersion: 2.34.1

dependencies:
Expand Down
11 changes: 7 additions & 4 deletions charts/backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,21 @@ spec:
{{- if ne (len .Values.extraVolumeMounts) 0 }}
{{ toYaml .Values.extraVolumeMounts | indent 12 }}
{{- end }}

livenessProbe:
httpGet:
path: /status/health
port: http
initialDelaySeconds: 30
periodSeconds: 10
initialDelaySeconds: {{ .Values.probes.backend.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.backend.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.probes.backend.livenessProbe.timeoutSeconds }}
readinessProbe:
httpGet:
path: /status/health
port: http
initialDelaySeconds: 1
periodSeconds: 10
initialDelaySeconds: {{ .Values.probes.backend.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.backend.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.probes.backend.readinessProbe.timeoutSeconds }}
ports:
- name: http
protocol: TCP
Expand Down
11 changes: 11 additions & 0 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ ingress:
hosts:
- api.signals.local

probes:
backend:
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 15
timeoutSeconds: 15
readinessProbe:
initialDelaySeconds: 30
periodSeconds: 15
timeoutSeconds: 15

resources: {}

worker:
Expand Down
2 changes: 1 addition & 1 deletion charts/classification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: classification
description: Machine learning prediction API
type: application
version: 4.13.2
version: 4.13.3
appVersion: ad60447d1733473e30ab0a3ba53d58141cc1d250
2 changes: 1 addition & 1 deletion charts/frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: frontend
description: The web frontend for the Signals application
type: application
version: 4.13.2
version: 4.13.3
appVersion: 2.14.22

0 comments on commit ad11240

Please sign in to comment.