Skip to content

Commit

Permalink
platform-api: configuration of startup and liveness probes for http c…
Browse files Browse the repository at this point in the history
…ontainer
  • Loading branch information
tuxpiper committed Nov 21, 2022
1 parent 00d484d commit f59a36f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.13
version: 0.0.1-alpha.14
icon: https://github.ushahidi.org/helm-charts/icon.png
11 changes: 10 additions & 1 deletion charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,17 @@ spec:
- /entrypoint.CES.sh
- start
{{- if not (.Values.config.multisite.enabled | default false) }}
startupProbe:
initialDelaySeconds: {{ .Values.api.startupProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.api.startupProbe.periodSeconds }}
failureThreshold: {{ .Values.api.startupProbe.failureThreshold }}
httpGet:
path: /api/v3/config
port: 8080
livenessProbe:
initialDelaySeconds: {{ .Values.minReadySeconds }}
initialDelaySeconds: {{ .Values.api.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.api.livenessProbe.periodSeconds }}
failureThreshold: {{ .Values.api.livenessProbe.failureThreshold }}
httpGet:
path: /api/v3/config
port: 8080
Expand Down
8 changes: 8 additions & 0 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ api:
requests:
cpu: "10m"
memory: "64Mi"
startupProbe:
initialDelaySeconds: 5
periodSeconds: 1
failureThreshold: 300
livenessProbe:
initialDelaySeconds: 0
periodSeconds: 5
failureThreshold: 1
# deployment:
# annotations:
ingress:
Expand Down

0 comments on commit f59a36f

Please sign in to comment.