From 04a4f83ff5c77062bde0526e7cc4541ac31fd0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20Garc=C3=ADa?= Date: Wed, 11 Nov 2020 20:13:29 +0100 Subject: [PATCH] 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. --- installation/kubernetes/webapp.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/installation/kubernetes/webapp.yaml b/installation/kubernetes/webapp.yaml index 91226dc..a9742fc 100644 --- a/installation/kubernetes/webapp.yaml +++ b/installation/kubernetes/webapp.yaml @@ -92,6 +92,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: 10 + timeoutSeconds: 10 volumeMounts: - name: whatsapp-media mountPath: /usr/local/wamedia