From 19850db67b6c1bcd29d92ed62b58f862054614c1 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias <80455946+bmm-alc@users.noreply.github.com> Date: Tue, 7 Mar 2023 11:18:47 +0100 Subject: [PATCH 1/2] Include basic liveness & readiness probes Include a HTTPS request to the root path (/) that returns a 200 OK and does not require a token to be requested. patch from https://github.com/WhatsApp/WhatsApp-Business-API-Setup-Scripts/pull/48 --- installation/kubernetes/webapp.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/installation/kubernetes/webapp.yaml b/installation/kubernetes/webapp.yaml index 26c348b..052c580 100644 --- a/installation/kubernetes/webapp.yaml +++ b/installation/kubernetes/webapp.yaml @@ -93,6 +93,20 @@ spec: key: wa-db-password - name: WA_WEB_SERVERNAME value: 'whatsapp-web-service' + livenessProbe: + httpGet: + path: / + port: web + scheme: HTTPS + initialDelaySeconds: 30 + timeoutSeconds: 10 + readinessProbe: + httpGet: + path: / + port: web + scheme: HTTPS + initialDelaySeconds: 30 + timeoutSeconds: 10 volumeMounts: - name: whatsapp-media mountPath: /usr/local/wamedia From 9f0dfb0c0b3669622f7f5905f3a0d9d96b6e06c9 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias <80455946+bmm-alc@users.noreply.github.com> Date: Tue, 7 Mar 2023 13:46:23 +0100 Subject: [PATCH 2/2] fix previous commit --- installation/kubernetes/webapp.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installation/kubernetes/webapp.yaml b/installation/kubernetes/webapp.yaml index 052c580..1c50dca 100644 --- a/installation/kubernetes/webapp.yaml +++ b/installation/kubernetes/webapp.yaml @@ -98,15 +98,15 @@ spec: path: / port: web scheme: HTTPS - initialDelaySeconds: 30 - timeoutSeconds: 10 + initialDelaySeconds: 30 + timeoutSeconds: 10 readinessProbe: httpGet: path: / port: web scheme: HTTPS - initialDelaySeconds: 30 - timeoutSeconds: 10 + initialDelaySeconds: 30 + timeoutSeconds: 10 volumeMounts: - name: whatsapp-media mountPath: /usr/local/wamedia