From 7854fdf9198b08fca13cadebe73dd9220a6e56c5 Mon Sep 17 00:00:00 2001 From: Philip Weyer <33149782+philip-weyer@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:40:02 +0200 Subject: [PATCH] SMFI-15: startup probe path configurable --- charts/sophora-media-finder/Chart.yaml | 2 +- charts/sophora-media-finder/templates/deployment.yaml | 6 +++--- charts/sophora-media-finder/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/charts/sophora-media-finder/Chart.yaml b/charts/sophora-media-finder/Chart.yaml index d39a689..a3982af 100644 --- a/charts/sophora-media-finder/Chart.yaml +++ b/charts/sophora-media-finder/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: sophora-media-finder description: A Helm chart for Sophora Media Finder type: application -version: 0.1.0 +version: 0.1.1 appVersion: "5.x" diff --git a/charts/sophora-media-finder/templates/deployment.yaml b/charts/sophora-media-finder/templates/deployment.yaml index 3dea2f7..c1edf6d 100644 --- a/charts/sophora-media-finder/templates/deployment.yaml +++ b/charts/sophora-media-finder/templates/deployment.yaml @@ -40,7 +40,7 @@ spec: {{- with .Values.livenessProbe }} livenessProbe: httpGet: - path: /health + path: {{ .path }} port: 8080 failureThreshold: {{ .failureThreshold }} initialDelaySeconds: {{ .initialDelaySeconds }} @@ -50,7 +50,7 @@ spec: {{- with .Values.readinessProbe }} readinessProbe: httpGet: - path: /health + path: {{ .path }} port: 8080 failureThreshold: {{ .failureThreshold }} initialDelaySeconds: {{ .initialDelaySeconds }} @@ -60,7 +60,7 @@ spec: {{- with .Values.startupProbe }} startupProbe: httpGet: - path: /health + path: {{ .path }} port: 8080 failureThreshold: {{ .failureThreshold }} initialDelaySeconds: {{ .initialDelaySeconds }} diff --git a/charts/sophora-media-finder/values.yaml b/charts/sophora-media-finder/values.yaml index 77d9785..262653d 100644 --- a/charts/sophora-media-finder/values.yaml +++ b/charts/sophora-media-finder/values.yaml @@ -23,18 +23,21 @@ ingress: tls: [] startupProbe: + path: /actuator/health failureThreshold: 15 initialDelaySeconds: 10 timeoutSeconds: 5 periodSeconds: 5 readinessProbe: + path: /actuator/health failureThreshold: 5 initialDelaySeconds: 5 timeoutSeconds: 5 periodSeconds: 5 livenessProbe: + path: /actuator/health failureThreshold: 3 initialDelaySeconds: 15 timeoutSeconds: 10