From f59a36f315663ba0003c0213b93df56529da6810 Mon Sep 17 00:00:00 2001 From: David Losada Carballo Date: Mon, 21 Nov 2022 08:56:07 +0100 Subject: [PATCH] platform-api: configuration of startup and liveness probes for http container --- charts/platform-api/Chart.yaml | 2 +- charts/platform-api/templates/api-worker.yml | 11 ++++++++++- charts/platform-api/values.yaml | 8 ++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/charts/platform-api/Chart.yaml b/charts/platform-api/Chart.yaml index 60b9887..5de8b8a 100644 --- a/charts/platform-api/Chart.yaml +++ b/charts/platform-api/Chart.yaml @@ -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 diff --git a/charts/platform-api/templates/api-worker.yml b/charts/platform-api/templates/api-worker.yml index 390eca7..164c266 100644 --- a/charts/platform-api/templates/api-worker.yml +++ b/charts/platform-api/templates/api-worker.yml @@ -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 diff --git a/charts/platform-api/values.yaml b/charts/platform-api/values.yaml index cb56b45..088f698 100644 --- a/charts/platform-api/values.yaml +++ b/charts/platform-api/values.yaml @@ -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: