Skip to content

Commit f84292f

Browse files
committed
feat(helm): Add health probes to write
Adds configurable `livenessProbe` and `startupProbe` to the loki container in the write pods. Also adds a guard for when the `readinessProbe` is unset. Signed-off-by: Andreas Lindhé <[email protected]>
1 parent 227c401 commit f84292f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

production/helm/loki/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Entries should include a reference to the pull request that introduced the chang
4040
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to ruler.
4141
- [ENHANCEMENT] Add configurable `startupProbe` to the loki-sc-rules sidecar container in the single-binary pods.
4242
- [ENHANCEMENT] Add configurable `startupProbe` to table-manager.
43+
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` to write.
4344

4445
## 6.23.0
4546

production/helm/loki/templates/write/statefulset-write.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,18 @@ spec:
114114
{{- end }}
115115
securityContext:
116116
{{- toYaml .Values.loki.containerSecurityContext | nindent 12 }}
117+
{{- with .Values.loki.livenessProbe }}
118+
livenessProbe:
119+
{{- toYaml . | nindent 12 }}
120+
{{- end }}
121+
{{- with .Values.loki.readinessProbe }}
117122
readinessProbe:
118-
{{- toYaml .Values.loki.readinessProbe | nindent 12 }}
123+
{{- toYaml . | nindent 12 }}
124+
{{- end }}
125+
{{- with .Values.loki.startupProbe }}
126+
startupProbe:
127+
{{- toYaml . | nindent 12 }}
128+
{{- end }}
119129
{{- if .Values.write.lifecycle }}
120130
lifecycle:
121131
{{- toYaml .Values.write.lifecycle | nindent 12 }}

0 commit comments

Comments
 (0)