diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md
index 4a90ba76f71cf..d54581c9e82f9 100644
--- a/docs/sources/setup/install/helm/reference.md
+++ b/docs/sources/setup/install/helm/reference.md
@@ -5456,6 +5456,7 @@ null
},
"initContainers": [],
"joinMemberlist": true,
+ "lifecycle": {},
"maxUnavailable": null,
"nodeSelector": {},
"persistence": {
@@ -5634,6 +5635,15 @@ null
true
+ |
+
+
+ | indexGateway.lifecycle |
+ object |
+ Lifecycle for the index-gateway container |
+
+{}
+
|
diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md
index 95fdc6b59789f..0c0e389c0b541 100644
--- a/production/helm/loki/CHANGELOG.md
+++ b/production/helm/loki/CHANGELOG.md
@@ -13,14 +13,14 @@ Entries should include a reference to the pull request that introduced the chang
## Unreleased
-- [BUGFIX] Wrong context passed to loki.namespace helper from table manager servicemonitor. [#19461](https://github.com/grafana/loki/pull/19461)
- [CHANGE] Remove unused `storageClass` field from compactor persistence configuration. Storage class should be configured per-claim in the `claims` array instead.[#19443](https://github.com/grafana/loki/pull/19443)
- [FEATURE] Make loki-canary readinessProbe configurable via values.yaml [#19328](https://github.com/grafana/loki/pull/19328)
-- [FEATURE]: Allow auto-resizing the volume by recreating the StatefulSet. [#19217](https://github.com/grafana/loki/pull/19217)
-- [BUGFIX] Add single-binary component to ingress NetworkPolicy [#19229](https://github.com/grafana/loki/pull/19229)
-- [BUGFIX] Use strings in stead of integers for ports in CiliumNetworkPolicies [#19252](https://github.com/grafana/loki/pull/19252)
- [ENHANCEMENT] Update default readiness probe values to match operator [#19529](https://github.com/grafana/loki/pull/19529)
-- [ENHANCEMENT] Allow configuration of alert rule severities and thresholds
+- [ENHANCEMENT] Allow configuration of alert rule severalties and thresholds[#13730](https://github.com/grafana/loki/pull/13730)
+- [ENHANCEMENT] Standardize global image registry configuration to match other Grafana charts [#19246](https://github.com/grafana/loki/pull/19246)
+- [ENHANCEMENT] Add the ability to specify index-gateway container lifecycle. [#19573](https://github.com/grafana/loki/pull/19573)
+- [BUGFIX] Move bucketName validations into the config helpers.[#19051](https://github.com/grafana/loki/pull/19051)
+- [BUGFIX] Standardize global image registry to match other Grafana charts [#19246](https://github.com/grafana/loki/pull/19246)
## 6.44.0
@@ -58,7 +58,6 @@ Before upgrading to this version, make sure that the CustomResourceDefinitions (
- [BUGFIX] Explicitly set registry for k8s-sidecar image [#19233](]
- [ENHANCEMENT] Add configurable `livenessProbe` and `startupProbe` for the nginx container in the gateway pods. [#18545](https://github.com/grafana/loki/pull/18545)
-- [ENHANCEMENT] Standardize global image registry configuration to match other Grafana charts [#19246](https://github.com/grafana/loki/pull/19246)
## 6.40.0
diff --git a/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml b/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml
index b50bf66bba06c..52d4c225dd3d9 100644
--- a/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml
+++ b/production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml
@@ -130,6 +130,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.indexGateway.resources | nindent 12 }}
+ {{- with .Values.indexGateway.lifecycle }}
+ lifecycle:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
{{- if .Values.indexGateway.extraContainers }}
{{- toYaml .Values.indexGateway.extraContainers | nindent 8}}
{{- end }}
diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml
index f643741b5f33f..20d9da19d0a9e 100644
--- a/production/helm/loki/values.yaml
+++ b/production/helm/loki/values.yaml
@@ -2598,6 +2598,8 @@ indexGateway:
initContainers: []
# -- Grace period to allow the index-gateway to shutdown before it is killed.
terminationGracePeriodSeconds: 300
+ # -- Lifecycle for the index-gateway container
+ lifecycle: {}
# -- Affinity for index-gateway pods.
# @default -- Hard node anti-affinity
# The value will be passed through tpl.