From af1750eef7e0d103bb9b701667f7af20341ae5c7 Mon Sep 17 00:00:00 2001 From: Mikkel Birch Date: Wed, 10 Jul 2024 13:26:11 +0200 Subject: [PATCH] Startup and readines probes --- .../templates/kitcaddy-deployment.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/helm/kitcaddy/templates/kitcaddy-deployment.yaml b/helm/kitcaddy/templates/kitcaddy-deployment.yaml index f222929..f3f4f9d 100644 --- a/helm/kitcaddy/templates/kitcaddy-deployment.yaml +++ b/helm/kitcaddy/templates/kitcaddy-deployment.yaml @@ -117,6 +117,26 @@ spec: - -config - /config/config.json env: [] + startupProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 80 + scheme: HTTP + initialDelaySeconds: 50 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + httpGet: + path: /metrics + port: 80 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 1 image: "{{ .Values.kitcaddy.image.repository }}:{{ .Values.kitcaddy.image.tag | default .Chart.AppVersion }}" ports: - containerPort: 80