Skip to content

Commit

Permalink
Add pod lifecycle (#104)
Browse files Browse the repository at this point in the history
* Introducing pod lifecycle

* Bump chart version
  • Loading branch information
fredsig authored Oct 14, 2024
1 parent c610f44 commit 1f95947
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.7.1
version: 0.7.2
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.indexer.lifecycleHooks }}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.indexer.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.searcher.lifecycleHooks }}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end}}
{{- if .Values.searcher.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
16 changes: 16 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ searcher:
path: /health/readyz
port: rest

lifecycleHooks: {}
# preStop:
# exec:
# command:
# - /bin/sh
# - -c
# - sleep 30

# Override args for starting container
args: []

Expand Down Expand Up @@ -196,6 +204,14 @@ indexer:

affinity: {}

lifecycleHooks: {}
# preStop:
# exec:
# command:
# - /bin/sh
# - -c
# - sleep 30

# Long grace period is recommended to wait for all index commit_timeout_secs and splits to be published
# See https://quickwit.io/docs/configuration/index-config#indexing-settings
terminationGracePeriodSeconds: 120
Expand Down

0 comments on commit 1f95947

Please sign in to comment.