From 7d34de6a2f5dc2aa89f10ee92a184f474e991a03 Mon Sep 17 00:00:00 2001 From: Jay Sharma Date: Fri, 18 Aug 2023 03:31:21 +0530 Subject: [PATCH] probes --- build/dev/deployment.tpl | 28 ++++++++++++++++++++++++++++ build/qa/deployment.tpl | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/build/dev/deployment.tpl b/build/dev/deployment.tpl index 35913599..51d0680f 100755 --- a/build/dev/deployment.tpl +++ b/build/dev/deployment.tpl @@ -53,6 +53,34 @@ spec: - containerPort: 80 name: http protocol: TCP + startupProbe: + exec: + command: + - /root/redinessprobe-wp.sh + initialDelaySeconds: 60 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 10 + successThreshold: 1 + readinessProbe: + exec: + command: + - /bin/sh + - -c + - "wget -qO- 127.0.0.1/status |grep start && echo redinessprobe-success || exit 9" + initialDelaySeconds: 180 + periodSeconds: 5 + successThreshold: 1 + failureThreshold: 5 + timeoutSeconds: 5 + livenessProbe: + tcpSocket: + port: 80 + initialDelaySeconds: 2 + periodSeconds: 2 + successThreshold: 1 + failureThreshold: 3 + timeoutSeconds: 3 resources: limits: cpu: 500m diff --git a/build/qa/deployment.tpl b/build/qa/deployment.tpl index a0c77be6..b76c665a 100644 --- a/build/qa/deployment.tpl +++ b/build/qa/deployment.tpl @@ -53,6 +53,34 @@ spec: - containerPort: 80 name: http protocol: TCP + startupProbe: + exec: + command: + - /root/redinessprobe-wp.sh + initialDelaySeconds: 60 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 10 + successThreshold: 1 + readinessProbe: + exec: + command: + - /bin/sh + - -c + - "wget -qO- 127.0.0.1/status |grep start && echo redinessprobe-success || exit 9" + initialDelaySeconds: 180 + periodSeconds: 5 + successThreshold: 1 + failureThreshold: 5 + timeoutSeconds: 5 + livenessProbe: + tcpSocket: + port: 80 + initialDelaySeconds: 2 + periodSeconds: 2 + successThreshold: 1 + failureThreshold: 3 + timeoutSeconds: 3 resources: limits: cpu: 500m