Skip to content

Commit d281b9d

Browse files
committed
feat(helm): Add startupProbe for gateway
Signed-off-by: Andreas Lindhé <[email protected]>
1 parent 341d255 commit d281b9d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

production/helm/loki/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Entries should include a reference to the pull request that introduced the chang
1515

1616
- [BUGFIX] Disables the Helm test pod when `test.enabled=false`.
1717
- [ENHANCEMENT] Sets a configurable `livenessProbe` for the nginx container in the gateway pod.
18+
- [ENHANCEMENT] Sets a configurable `startupProbe` for the nginx container in the gateway pod.
1819

1920
## 6.23.0
2021

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

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ spec:
7676
{{- toYaml .Values.gateway.livenessProbe | nindent 12 }}
7777
readinessProbe:
7878
{{- toYaml .Values.gateway.readinessProbe | nindent 12 }}
79+
startupProbe:
80+
{{- toYaml .Values.gateway.startupProbe | nindent 12 }}
7981
securityContext:
8082
{{- toYaml .Values.gateway.containerSecurityContext | nindent 12 }}
8183
{{- with .Values.gateway.lifecycle }}

production/helm/loki/values.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,13 @@ gateway:
10781078
port: http-metrics
10791079
initialDelaySeconds: 15
10801080
timeoutSeconds: 1
1081+
# -- startup probe for the nginx container in the gateway pods.
1082+
startupProbe:
1083+
httpGet:
1084+
path: /
1085+
port: http-metrics
1086+
initialDelaySeconds: 15
1087+
timeoutSeconds: 1
10811088
nginxConfig:
10821089
# -- Which schema to be used when building URLs. Can be 'http' or 'https'.
10831090
schema: http

0 commit comments

Comments
 (0)