Skip to content

Commit 5920524

Browse files
committed
feat(helm): add ability to specify index-gateway container lifecycle
1 parent 160dc2c commit 5920524

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

docs/sources/setup/install/helm/reference.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5467,6 +5467,7 @@ null
54675467
},
54685468
"initContainers": [],
54695469
"joinMemberlist": true,
5470+
"lifecycle": {},
54705471
"maxUnavailable": null,
54715472
"nodeSelector": {},
54725473
"persistence": {
@@ -5645,6 +5646,15 @@ null
56455646
<td><pre lang="json">
56465647
true
56475648
</pre>
5649+
</td>
5650+
</tr>
5651+
<tr>
5652+
<td>indexGateway.lifecycle</td>
5653+
<td>object</td>
5654+
<td>Lifecycle for the index-gateway container</td>
5655+
<td><pre lang="json">
5656+
{}
5657+
</pre>
56485658
</td>
56495659
</tr>
56505660
<tr>

production/helm/loki/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang
1313

1414
## Unreleased
1515

16+
- [ENHANCEMENT] Add the ability to specify index-gateway container lifecycle. [#19573](https://github.com/grafana/loki/pull/19573)
17+
1618
## 6.43.0
1719

1820
- [BREAKING] **Loki UI has been completely removed from the Helm chart.** The experimental Loki UI has been moved to a [Grafana Plugin] (https://github.com/grafana/loki-operational-ui). Enabling the UI in the Helm chart will now only enable the APIs needed by the plugin, and will host them on the querier. The gateway will now forward all UI requests to the queriers. Users who previously had `loki.ui.enabled: true` should remove this configuration and migrate to the Grafana Loki plugin for UI functionality. [#19390](https://github.com/grafana/loki/pull/19390)

production/helm/loki/templates/index-gateway/statefulset-index-gateway.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ spec:
130130
{{- end }}
131131
resources:
132132
{{- toYaml .Values.indexGateway.resources | nindent 12 }}
133+
{{- with .Values.indexGateway.lifecycle }}
134+
lifecycle:
135+
{{- toYaml . | nindent 12 }}
136+
{{- end }}
133137
{{- if .Values.indexGateway.extraContainers }}
134138
{{- toYaml .Values.indexGateway.extraContainers | nindent 8}}
135139
{{- end }}

production/helm/loki/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,6 +2593,8 @@ indexGateway:
25932593
initContainers: []
25942594
# -- Grace period to allow the index-gateway to shutdown before it is killed.
25952595
terminationGracePeriodSeconds: 300
2596+
# -- Lifecycle for the index-gateway container
2597+
lifecycle: {}
25962598
# -- Affinity for index-gateway pods.
25972599
# @default -- Hard node anti-affinity
25982600
# The value will be passed through tpl.

0 commit comments

Comments
 (0)