Skip to content

Commit

Permalink
Merge branch 'main' into feat/clean-kubernetes-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nlamirault authored Nov 15, 2024
2 parents d7da1b7 + dcc9e6d commit 4bfe66a
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/quickwit/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Quickwit environment
- name: QW_ADVERTISE_ADDRESS
value: "$(POD_IP)"
- name: QW_CLUSTER_ENDPOINT
value: http://{{ include "quickwit.fullname" $ }}-metastore.{{ $.Release.Namespace }}.svc.cluster.local:7280
value: http://{{ include "quickwit.fullname" $ }}-metastore.{{ $.Release.Namespace }}.svc.{{ .Values.clusterDomain }}:7280
{{- range $key, $value := .Values.environment }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
3 changes: 3 additions & 0 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.control_plane.runtimeClassName }}
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
{{- end }}
10 changes: 9 additions & 1 deletion charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
replicas: {{ .Values.indexer.replicaCount }}
serviceName: {{ include "quickwit.fullname" . }}-headless
{{- if .Values.searcher.podManagementPolicy }}
{{- if .Values.indexer.podManagementPolicy }}
podManagementPolicy: {{ .Values.indexer.podManagementPolicy }}
{{- end }}
selector:
Expand Down Expand Up @@ -96,6 +96,11 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.indexer.resources | nindent 12 }}
{{- if .Values.indexer.lifecycleHooks }}
lifecycle:
{{- toYaml .Values.indexer.lifecycleHooks | nindent 12 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.indexer.terminationGracePeriodSeconds }}
volumes:
- name: config
configMap:
Expand Down Expand Up @@ -127,6 +132,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.indexer.runtimeClassName }}
runtimeClassName: {{ .Values.indexer.runtimeClassName | quote }}
{{- end }}
{{- if .Values.indexer.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
7 changes: 5 additions & 2 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Deployment
metadata:
name: {{ include "quickwit.fullname" . }}-janitor
labels:
{{- include "quickwit.labels" . | nindent 4 }}
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -122,4 +122,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.janitor.runtimeClassName }}
runtimeClassName: {{ .Values.janitor.runtimeClassName | quote }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if $.Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if $.Values.bootstrap.runtimeClassName }}
runtimeClassName: {{ $.Values.bootstrap.runtimeClassName | quote }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.metastore.runtimeClassName }}
runtimeClassName: {{ .Values.metastore.runtimeClassName | quote }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.searcher.resources | nindent 14 }}
{{- if .Values.searcher.lifecycleHooks }}
lifecycle:
{{- toYaml .Values.searcher.lifecycleHooks | nindent 14 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down Expand Up @@ -127,6 +131,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.searcher.runtimeClassName }}
runtimeClassName: {{ .Values.searcher.runtimeClassName | quote }}
{{- end }}
{{- if .Values.searcher.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
45 changes: 45 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Set the Kuberentes cluster domain if not default. It's used to build URLs for the services.
clusterDomain: cluster.local

# -- Additional labels to add to all resources
additionalLabels: {}
# app: quickwit
Expand Down Expand Up @@ -105,6 +108,19 @@ searcher:
path: /health/readyz
port: rest

# StatefulSet allows you to relax its ordering guarantees
# - OrderedReady
# - Parallel
podManagementPolicy: OrderedReady

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

# Override args for starting container
args: []

Expand All @@ -125,6 +141,8 @@ searcher:

affinity: {}

runtimeClassName: ""

indexer:
replicaCount: 1

Expand Down Expand Up @@ -176,6 +194,11 @@ indexer:
path: /health/readyz
port: rest

# StatefulSet allows you to relax its ordering guarantees
# - OrderedReady
# - Parallel
podManagementPolicy: OrderedReady

# Override args for starting container
args: []

Expand All @@ -196,6 +219,20 @@ 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

runtimeClassName: ""

persistentVolume:
enabled: false
# storage: "1Gi"
Expand Down Expand Up @@ -268,6 +305,8 @@ metastore:

affinity: {}

runtimeClassName: ""

control_plane:
# Extra env for control plane
extraEnv: {}
Expand Down Expand Up @@ -329,6 +368,8 @@ control_plane:

affinity: {}

runtimeClassName: ""

janitor:
# Enable Janitor service
enabled: true
Expand Down Expand Up @@ -393,6 +434,8 @@ janitor:

affinity: {}

runtimeClassName: ""

# Deploy jobs to bootstrap creation of indexes and sources for quickwit clusters
bootstrap:
# Enable bootstrap jobs
Expand Down Expand Up @@ -421,6 +464,8 @@ bootstrap:

affinity: {}

runtimeClassName: ""

sources:
# Override command for starting container
command: []
Expand Down

0 comments on commit 4bfe66a

Please sign in to comment.