Skip to content

Commit b691b80

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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)