From d56d909b722659ffccb50b544d9d4bdf555fea26 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Tue, 3 Oct 2023 19:04:37 -0500 Subject: [PATCH] Add probes to staging --- kubernetes/deployment-staging.tmpl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/kubernetes/deployment-staging.tmpl b/kubernetes/deployment-staging.tmpl index f593a7d..4a234a1 100644 --- a/kubernetes/deployment-staging.tmpl +++ b/kubernetes/deployment-staging.tmpl @@ -24,6 +24,36 @@ spec: limits: memory: "600Mi" cpu: "500m" + startupProbe: + httpGet: + path: / + port: 80 + httpHeaders: + - name: X-Forwarded-Proto + value: https + # wait 6 * 10 seconds(default periodSeconds) for the container to start + # after this succeeds once the liveness probe takes over + failureThreshold: 6 + livenessProbe: + httpGet: + path: / + port: 80 + httpHeaders: + - name: X-Forwarded-Proto + value: https + # allow a longer response time than 1s + timeoutSeconds: 10 + readinessProbe: + httpGet: + path: / + port: 80 + httpHeaders: + - name: X-Forwarded-Proto + value: https + # start checking for readiness after 20s (to serve traffic) + initialDelaySeconds: 20 + # allow a longer response time than 1s + timeoutSeconds: 10 env: - name: RAILS_LOG_TO_STDOUT value: "true"