Skip to content

Commit a5fd221

Browse files
committed
[loki-distributed] Add index-gateway container lifecycle
Signed-off-by: Francisco Robles Martín <[email protected]>
1 parent 665f0bf commit a5fd221

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

charts/loki-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: loki-distributed
33
description: Helm chart for Grafana Loki in microservices mode
44
type: application
55
appVersion: 2.9.13
6-
version: 0.80.5
6+
version: 0.80.6
77
home: https://grafana.github.io/helm-charts
88
sources:
99
- https://github.com/grafana/loki

charts/loki-distributed/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# loki-distributed
22

3-
![Version: 0.80.5](https://img.shields.io/badge/Version-0.80.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.13](https://img.shields.io/badge/AppVersion-2.9.13-informational?style=flat-square)
3+
![Version: 0.80.6](https://img.shields.io/badge/Version-0.80.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.13](https://img.shields.io/badge/AppVersion-2.9.13-informational?style=flat-square)
44

55
Helm chart for Grafana Loki in microservices mode
66

@@ -262,6 +262,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA
262262
| indexGateway.image.tag | string | `nil` | Docker image tag for the index-gateway image. Overrides `loki.image.tag` |
263263
| indexGateway.initContainers | list | `[]` | Init containers to add to the index-gateway pods |
264264
| indexGateway.joinMemberlist | bool | `true` | Whether the index gateway should join the memberlist hashring |
265+
| indexGateway.lifecycle | object | `{}` | Lifecycle for the index-gateway container |
265266
| indexGateway.maxUnavailable | string | `nil` | Pod Disruption Budget maxUnavailable |
266267
| indexGateway.minAvailable | string | `nil` | Pod Disruption Budget minAvailable |
267268
| indexGateway.nodeSelector | object | `{}` | Node selector for index-gateway pods |

charts/loki-distributed/templates/index-gateway/statefulset-index-gateway.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ spec:
115115
{{- end }}
116116
resources:
117117
{{- toYaml .Values.indexGateway.resources | nindent 12 }}
118+
{{- with .Values.indexGateway.lifecycle }}
119+
lifecycle:
120+
{{- toYaml . | nindent 12 }}
121+
{{- end }}
118122
{{- if .Values.indexGateway.extraContainers }}
119123
{{- toYaml .Values.indexGateway.extraContainers | nindent 8}}
120124
{{- end }}

charts/loki-distributed/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,8 @@ indexGateway:
16761676
initContainers: []
16771677
# -- Grace period to allow the index-gateway to shutdown before it is killed.
16781678
terminationGracePeriodSeconds: 300
1679+
# -- Lifecycle for the index-gateway container
1680+
lifecycle: {}
16791681
# -- Affinity for index-gateway pods. Passed through `tpl` and, thus, to be configured as string
16801682
# @default -- Hard node and soft zone anti-affinity
16811683
affinity: |

0 commit comments

Comments
 (0)