Skip to content

Commit d5c9a5a

Browse files
committed
feat(helm): Add health probes to enterprise-gateway
This change makes it possible to configure `livenessProbe` and `startupProbe` in the gateway container in the enterprise-gateway pods. Signed-off-by: Andreas Lindhé <[email protected]>
1 parent 10d9afb commit d5c9a5a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

production/helm/loki/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Entries should include a reference to the pull request that introduced the chang
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)
2323
- [ENHANCEMENT] Add guards to the `readinessProbe` of the `gateway` container in the `enterprise-gateway` pods, in case the value is empty [#20074](https://github.com/grafana/loki/pull/20074)
24+
- [ENHANCEMENT] Makes it possible to configure livenessProbe and startupProbe in the gateway container in the enterprise-gateway pods [#20074](https://github.com/grafana/loki/pull/20074)
2425

2526
## 6.46.0
2627

production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,18 @@ spec:
115115
- name: http-metrics
116116
containerPort: 3100
117117
protocol: TCP
118+
{{- with .Values.enterpriseGateway.livenessProbe }}
119+
livenessProbe:
120+
{{- toYaml . | nindent 12 }}
121+
{{- end }}
118122
{{- with .Values.enterpriseGateway.readinessProbe }}
119123
readinessProbe:
120124
{{- toYaml . | nindent 12 }}
121125
{{- end }}
126+
{{- with .Values.enterpriseGateway.startupProbe }}
127+
startupProbe:
128+
{{- toYaml . | nindent 12 }}
129+
{{- end }}
122130
resources:
123131
{{- toYaml .Values.enterpriseGateway.resources | nindent 12 }}
124132
securityContext:

production/helm/loki/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,12 +1310,16 @@ enterpriseGateway:
13101310
# -- update strategy
13111311
strategy:
13121312
type: RollingUpdate
1313+
# -- Liveness probe
1314+
livenessProbe: {}
13131315
# -- Readiness probe
13141316
readinessProbe:
13151317
httpGet:
13161318
path: /ready
13171319
port: http-metrics
13181320
initialDelaySeconds: 45
1321+
# -- Startup probe
1322+
startupProbe: {}
13191323
# -- Request and limit Kubernetes resources
13201324
# -- Values are defined in small.yaml and large.yaml
13211325
resources: {}

0 commit comments

Comments
 (0)