Skip to content

Commit

Permalink
feat(helm): Add livenessProbe for gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Lindhé <[email protected]>
  • Loading branch information
lindhe committed Dec 11, 2024
1 parent 42469cc commit 341d255
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Entries should include a reference to the pull request that introduced the chang
[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

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

## 6.23.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ spec:
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
{{- toYaml .Values.gateway.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.gateway.readinessProbe | nindent 12 }}
securityContext:
Expand Down
7 changes: 7 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,13 @@ gateway:
{{ else }} {{ htpasswd (required "'gateway.basicAuth.username' is required" .Values.gateway.basicAuth.username) (required "'gateway.basicAuth.password' is required" .Values.gateway.basicAuth.password) }} {{ end }}
# -- Existing basic auth secret to use. Must contain '.htpasswd'
existingSecret: null
# -- liveness probe for the nginx container in the gateway pods.
livenessProbe:
httpGet:
path: /
port: http-metrics
initialDelaySeconds: 15
timeoutSeconds: 1
# Configures the readiness probe for the gateway
readinessProbe:
httpGet:
Expand Down

0 comments on commit 341d255

Please sign in to comment.