Skip to content

Commit aa0ecd6

Browse files
committed
feat(helm): Add startupProbe to compactor
Adds a configurable `startupProbe` to the compactor container in the compactor pods. Signed-off-by: Andreas Lindhé <[email protected]>
1 parent a3e3a82 commit aa0ecd6

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

production/helm/loki/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Entries should include a reference to the pull request that introduced the chang
2020
- [ENHANCEMENT] Add support for configuring `volumeAttributesClassName` for `volumeClaimTemplates`. [#19719](https://github.com/grafana/loki/pull/19719)
2121
- [BUGFIX] Don't fail for missing bucket name, if minio is enabled. [#19745](https://github.com/grafana/loki/pull/19745)
2222
- [BUGFIX] Add startupProbe to read pod [#19708](https://github.com/grafana/loki/pull/19708)
23+
- [ENHANCEMENT] Add configurable `startupProbe` to compactor [#20072](https://github.com/grafana/loki/pull/20072).
2324

2425
## 6.46.0
2526

production/helm/loki/templates/compactor/_helpers-compactor.tpl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ livenessProbe:
4949
{{- end }}
5050
{{- end }}
5151

52+
{{/*
53+
compactor startup probe
54+
*/}}
55+
{{- define "loki.compactor.startupProbe" }}
56+
{{- with .Values.compactor.startupProbe | default .Values.loki.startupProbe }}
57+
startupProbe:
58+
{{- toYaml . | nindent 2 }}
59+
{{- end }}
60+
{{- end }}
61+
5262
{{/*
5363
compactor priority class name
5464
*/}}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ spec:
111111
{{- toYaml .Values.loki.containerSecurityContext | nindent 12 }}
112112
{{- include "loki.compactor.readinessProbe" . | nindent 10 }}
113113
{{- include "loki.compactor.livenessProbe" . | nindent 10 }}
114+
{{- include "loki.compactor.startupProbe" . | nindent 10 }}
114115
volumeMounts:
115116
- name: temp
116117
mountPath: /tmp

production/helm/loki/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,8 @@ compactor:
27752775
readinessProbe: {}
27762776
# -- liveness probe settings for ingester pods. If empty use `loki.livenessProbe`
27772777
livenessProbe: {}
2778+
# -- liveness probe settings for ingester pods. If empty use `loki.livenessProbe`
2779+
startupProbe: {}
27782780
# -- Resource requests and limits for the compactor
27792781
resources: {}
27802782
# -- Containers to add to the compactor pods

0 commit comments

Comments
 (0)