From 43245895efa37207fa7a0e3529e37a84f83a31aa Mon Sep 17 00:00:00 2001 From: Arnaud BEAUSSIER - BSO Date: Wed, 19 Nov 2025 14:56:38 +0100 Subject: [PATCH 1/2] update charts in order to add custom http header to liveness readiness and startup probe --- charts/meilisearch/templates/statefulset.yaml | 18 +++++++++++++++--- charts/meilisearch/values.yaml | 6 ++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/charts/meilisearch/templates/statefulset.yaml b/charts/meilisearch/templates/statefulset.yaml index 30e0ffc..ff8738e 100644 --- a/charts/meilisearch/templates/statefulset.yaml +++ b/charts/meilisearch/templates/statefulset.yaml @@ -89,23 +89,35 @@ spec: protocol: TCP startupProbe: httpGet: - path: /health + path: {{ .Values.startupProbe.path }} port: http + {{- if .Values.startupProbe.httpHeaders }} + httpHeaders: + {{- toYaml .Values.startupProbe.httpHeaders | nindent 8 }} + {{- end }} periodSeconds: {{ .Values.startupProbe.periodSeconds }} initialDelaySeconds: {{ .Values.startupProbe.InitialDelaySeconds }} failureThreshold: {{ .Values.startupProbe.failureThreshold }} timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} livenessProbe: httpGet: - path: /health + path: {{ .Values.livenessProbe.path }} port: http + {{- if .Values.livenessProbe.httpHeaders }} + httpHeaders: + {{- toYaml .Values.livenessProbe.httpHeaders | nindent 8 }} + {{- end }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} initialDelaySeconds: {{ .Values.livenessProbe.InitialDelaySeconds }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} readinessProbe: httpGet: - path: /health + path: {{ .Values.readinessProbe.path }} port: http + {{- if .Values.readinessProbe.httpHeaders }} + httpHeaders: + {{- toYaml .Values.readinessProbe.httpHeaders | nindent 8 }} + {{- end }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} initialDelaySeconds: {{ .Values.readinessProbe.InitialDelaySeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} diff --git a/charts/meilisearch/values.yaml b/charts/meilisearch/values.yaml index fe6b68d..b31f3ea 100644 --- a/charts/meilisearch/values.yaml +++ b/charts/meilisearch/values.yaml @@ -7,16 +7,22 @@ startupProbe: InitialDelaySeconds: 1 failureThreshold: 60 timeoutSeconds: 1 + path: "/health" + httpHeaders: [] readinessProbe: periodSeconds: 10 InitialDelaySeconds: 0 timeoutSeconds: 10 + path: "/health" + httpHeaders: [] livenessProbe: periodSeconds: 10 InitialDelaySeconds: 0 timeoutSeconds: 10 + path: "/health" + httpHeaders: [] image: # -- Meilisearch image name From 2623b04498b3abd2d1a200044c3ef82f288daac7 Mon Sep 17 00:00:00 2001 From: Arnaud BEAUSSIER - BSO Date: Wed, 19 Nov 2025 15:23:06 +0100 Subject: [PATCH 2/2] Fix Indent for httpHeaders from 8 to 14 --- charts/meilisearch/templates/statefulset.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/meilisearch/templates/statefulset.yaml b/charts/meilisearch/templates/statefulset.yaml index ff8738e..b7473a1 100644 --- a/charts/meilisearch/templates/statefulset.yaml +++ b/charts/meilisearch/templates/statefulset.yaml @@ -93,7 +93,7 @@ spec: port: http {{- if .Values.startupProbe.httpHeaders }} httpHeaders: - {{- toYaml .Values.startupProbe.httpHeaders | nindent 8 }} + {{- toYaml .Values.startupProbe.httpHeaders | nindent 14 }} {{- end }} periodSeconds: {{ .Values.startupProbe.periodSeconds }} initialDelaySeconds: {{ .Values.startupProbe.InitialDelaySeconds }} @@ -105,7 +105,7 @@ spec: port: http {{- if .Values.livenessProbe.httpHeaders }} httpHeaders: - {{- toYaml .Values.livenessProbe.httpHeaders | nindent 8 }} + {{- toYaml .Values.livenessProbe.httpHeaders | nindent 14 }} {{- end }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} initialDelaySeconds: {{ .Values.livenessProbe.InitialDelaySeconds }} @@ -116,7 +116,7 @@ spec: port: http {{- if .Values.readinessProbe.httpHeaders }} httpHeaders: - {{- toYaml .Values.readinessProbe.httpHeaders | nindent 8 }} + {{- toYaml .Values.readinessProbe.httpHeaders | nindent 14 }} {{- end }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} initialDelaySeconds: {{ .Values.readinessProbe.InitialDelaySeconds }}