From 94f48922ad19b21e353e1cf13d409b64b06647a7 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Tue, 21 Dec 2021 16:03:39 -0800 Subject: [PATCH] Better checks --- deployment.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index b9e3190..cf63c4c 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -37,18 +37,19 @@ spec: cpu: 100m memory: 100Mi livenessProbe: - tcpSocket: - port: 3001 - initialDelaySeconds: 5 - timeoutSeconds: 5 + exec: + command: + - node + - extra/healthcheck.js + initialDelaySeconds: 180 + timeoutSeconds: 30 successThreshold: 1 - failureThreshold: 3 - periodSeconds: 10 + periodSeconds: 60 readinessProbe: httpGet: path: / port: 3001 - initialDelaySeconds: 5 + initialDelaySeconds: 180 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 3