feat(helm): Add health probes to bloom-gateway (#18551)

Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
Signed-off-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
Co-authored-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
pull/18908/head
Andreas Lindhé 5 months ago committed by GitHub
parent d5ac0b8d8a
commit 797a1965b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      docs/sources/setup/install/helm/reference.md
  2. 1
      production/helm/loki/CHANGELOG.md
  3. 20
      production/helm/loki/templates/bloom-gateway/_helpers-bloom-gateway.tpl
  4. 2
      production/helm/loki/templates/bloom-gateway/statefulset-bloom-gateway.yaml
  5. 2
      production/helm/loki/values.yaml

@ -1209,6 +1209,7 @@ null
},
"serviceAnnotations": {},
"serviceLabels": {},
"startupProbe": {},
"terminationGracePeriodSeconds": 30,
"tolerations": []
}
@ -1521,6 +1522,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>bloomGateway.startupProbe</td>
<td>object</td>
<td>startup probe settings for ingester pods. If empty, use `loki.startupProbe`</td>
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>

@ -13,6 +13,7 @@ Entries should include a reference to the pull request that introduced the chang
[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to bloom-gateway. [#18551](https://github.com/grafana/loki/pull/18551)
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` for loki in bloom-builder. [#18549](https://github.com/grafana/loki/pull/18549)
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to bloom-planner. [#18552](https://github.com/grafana/loki/pull/18552)
- [FEATURE] Support separate loki ruler storage configuration [#18510](https://github.com/grafana/loki/pull/18510)

@ -21,6 +21,16 @@ bloom gateway selector labels
app.kubernetes.io/component: bloom-gateway
{{- end }}
{{/*
bloom gateway livenessProbe
*/}}
{{- define "loki.bloomGateway.livenessProbe" }}
{{- with .Values.bloomGateway.livenessProbe | default .Values.loki.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{/*
bloom gateway readinessProbe
*/}}
@ -31,6 +41,16 @@ readinessProbe:
{{- end }}
{{- end }}
{{/*
bloom gateway startupProbe
*/}}
{{- define "loki.bloomGateway.startupProbe" }}
{{- with .Values.bloomGateway.startupProbe | default .Values.loki.startupProbe }}
startupProbe:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{/*
bloom gateway priority class name
*/}}

@ -95,7 +95,9 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.loki.containerSecurityContext | nindent 12 }}
{{- include "loki.bloomGateway.livenessProbe" . | nindent 10 }}
{{- include "loki.bloomGateway.readinessProbe" . | nindent 10 }}
{{- include "loki.bloomGateway.startupProbe" . | nindent 10 }}
volumeMounts:
- name: temp
mountPath: /tmp

@ -2653,6 +2653,8 @@ bloomGateway:
readinessProbe: {}
# -- liveness probe settings for ingester pods. If empty use `loki.livenessProbe`
livenessProbe: {}
# -- startup probe settings for ingester pods. If empty, use `loki.startupProbe`
startupProbe: {}
# -- Resource requests and limits for the bloom-gateway
resources: {}
# -- Containers to add to the bloom-gateway pods

Loading…
Cancel
Save