Skip to content

Commit 797a196

Browse files
lindhejkroepkeJayclifford345
authored
feat(helm): Add health probes to bloom-gateway (#18551)
Signed-off-by: Andreas Lindhé <[email protected]> Signed-off-by: Jay Clifford <[email protected]> Co-authored-by: Jan-Otto Kröpke <[email protected]> Co-authored-by: Jay Clifford <[email protected]>
1 parent d5ac0b8 commit 797a196

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

docs/sources/setup/install/helm/reference.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,7 @@ null
12091209
},
12101210
"serviceAnnotations": {},
12111211
"serviceLabels": {},
1212+
"startupProbe": {},
12121213
"terminationGracePeriodSeconds": 30,
12131214
"tolerations": []
12141215
}
@@ -1521,6 +1522,15 @@ null
15211522
<td><pre lang="json">
15221523
{}
15231524
</pre>
1525+
</td>
1526+
</tr>
1527+
<tr>
1528+
<td>bloomGateway.startupProbe</td>
1529+
<td>object</td>
1530+
<td>startup probe settings for ingester pods. If empty, use `loki.startupProbe`</td>
1531+
<td><pre lang="json">
1532+
{}
1533+
</pre>
15241534
</td>
15251535
</tr>
15261536
<tr>

production/helm/loki/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Entries should include a reference to the pull request that introduced the chang
1313

1414
[//]: # (<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.)
1515

16+
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to bloom-gateway. [#18551](https://github.com/grafana/loki/pull/18551)
1617
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` for loki in bloom-builder. [#18549](https://github.com/grafana/loki/pull/18549)
1718
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to bloom-planner. [#18552](https://github.com/grafana/loki/pull/18552)
1819
- [FEATURE] Support separate loki ruler storage configuration [#18510](https://github.com/grafana/loki/pull/18510)

production/helm/loki/templates/bloom-gateway/_helpers-bloom-gateway.tpl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ bloom gateway selector labels
2121
app.kubernetes.io/component: bloom-gateway
2222
{{- end }}
2323

24+
{{/*
25+
bloom gateway livenessProbe
26+
*/}}
27+
{{- define "loki.bloomGateway.livenessProbe" }}
28+
{{- with .Values.bloomGateway.livenessProbe | default .Values.loki.livenessProbe }}
29+
livenessProbe:
30+
{{- toYaml . | nindent 2 }}
31+
{{- end }}
32+
{{- end }}
33+
2434
{{/*
2535
bloom gateway readinessProbe
2636
*/}}
@@ -31,6 +41,16 @@ readinessProbe:
3141
{{- end }}
3242
{{- end }}
3343

44+
{{/*
45+
bloom gateway startupProbe
46+
*/}}
47+
{{- define "loki.bloomGateway.startupProbe" }}
48+
{{- with .Values.bloomGateway.startupProbe | default .Values.loki.startupProbe }}
49+
startupProbe:
50+
{{- toYaml . | nindent 2 }}
51+
{{- end }}
52+
{{- end }}
53+
3454
{{/*
3555
bloom gateway priority class name
3656
*/}}

production/helm/loki/templates/bloom-gateway/statefulset-bloom-gateway.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ spec:
9595
{{- end }}
9696
securityContext:
9797
{{- toYaml .Values.loki.containerSecurityContext | nindent 12 }}
98+
{{- include "loki.bloomGateway.livenessProbe" . | nindent 10 }}
9899
{{- include "loki.bloomGateway.readinessProbe" . | nindent 10 }}
100+
{{- include "loki.bloomGateway.startupProbe" . | nindent 10 }}
99101
volumeMounts:
100102
- name: temp
101103
mountPath: /tmp

production/helm/loki/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,6 +2653,8 @@ bloomGateway:
26532653
readinessProbe: {}
26542654
# -- liveness probe settings for ingester pods. If empty use `loki.livenessProbe`
26552655
livenessProbe: {}
2656+
# -- startup probe settings for ingester pods. If empty, use `loki.startupProbe`
2657+
startupProbe: {}
26562658
# -- Resource requests and limits for the bloom-gateway
26572659
resources: {}
26582660
# -- Containers to add to the bloom-gateway pods

0 commit comments

Comments
 (0)