diff --git a/charts/meilisearch/templates/statefulset.yaml b/charts/meilisearch/templates/statefulset.yaml index 30e0ffc..b7473a1 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 14 }} + {{- 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 14 }} + {{- 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 14 }} + {{- 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