diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index 3acdd12d4d2a1..b6ac9f27cd99c 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -4409,6 +4409,7 @@ false "hostUsers": "nil", "initContainers": [], "labels": {}, + "livenessProbe": {}, "nodeSelector": {}, "podSecurityContext": { "fsGroup": 10001, @@ -4430,6 +4431,7 @@ false "labels": {}, "type": "ClusterIP" }, + "startupProbe": {}, "strategy": { "type": "RollingUpdate" }, @@ -4547,6 +4549,15 @@ false
 {}
 
+ + + + enterpriseGateway.livenessProbe + object + Liveness probe +
+{}
+
@@ -4616,6 +4627,15 @@ false "type": "ClusterIP" } + + + + enterpriseGateway.startupProbe + object + Startup probe +
+{}
+
diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index 29c2da475df1f..16a775befede5 100644 --- a/production/helm/loki/CHANGELOG.md +++ b/production/helm/loki/CHANGELOG.md @@ -20,6 +20,8 @@ Entries should include a reference to the pull request that introduced the chang - [ENHANCEMENT] Add support for configuring `volumeAttributesClassName` for `volumeClaimTemplates`. [#19719](https://github.com/grafana/loki/pull/19719) - [BUGFIX] Don't fail for missing bucket name, if minio is enabled. [#19745](https://github.com/grafana/loki/pull/19745) - [BUGFIX] Add startupProbe to read pod [#19708](https://github.com/grafana/loki/pull/19708) +- [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) +- [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) ## 6.46.0 diff --git a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml index 482046a336638..173487a4316a4 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml @@ -115,8 +115,18 @@ spec: - name: http-metrics containerPort: 3100 protocol: TCP + {{- with .Values.enterpriseGateway.livenessProbe }} + livenessProbe: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.enterpriseGateway.readinessProbe }} readinessProbe: - {{- toYaml .Values.enterpriseGateway.readinessProbe | nindent 12 }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.enterpriseGateway.startupProbe }} + startupProbe: + {{- toYaml . | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.enterpriseGateway.resources | nindent 12 }} securityContext: diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index f231e41d7aec8..986f1b6223efc 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -1310,12 +1310,16 @@ enterpriseGateway: # -- update strategy strategy: type: RollingUpdate + # -- Liveness probe + livenessProbe: {} # -- Readiness probe readinessProbe: httpGet: path: /ready port: http-metrics initialDelaySeconds: 45 + # -- Startup probe + startupProbe: {} # -- Request and limit Kubernetes resources # -- Values are defined in small.yaml and large.yaml resources: {}