Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

control_plane: added enabled and replicaCount to the config #122

Merged
merged 5 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.10
version: 0.8.0
guilload marked this conversation as resolved.
Show resolved Hide resolved
appVersion: "v0.8.2"
keywords:
- quickwit
Expand Down
4 changes: 3 additions & 1 deletion charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.control_plane.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -12,7 +13,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.control_plane.replicaCount }}
guilload marked this conversation as resolved.
Show resolved Hide resolved
selector:
matchLabels:
{{- include "quickwit.control_plane.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -123,3 +124,4 @@ spec:
{{- if .Values.control_plane.runtimeClassName }}
runtimeClassName: {{ .Values.control_plane.runtimeClassName | quote }}
{{- end }}
{{- end }}
119 changes: 77 additions & 42 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ fullnameOverride: ""
clusterDomain: cluster.local

# -- Additional labels to add to all resources
additionalLabels: {}
additionalLabels:
{}
# app: quickwit

serviceAccount:
Expand All @@ -40,15 +41,18 @@ securityContext:
runAsUser: 1005

# Additional global env
environment: {}
environment:
{}
# KEY: VALUE
environmentFrom: []
environmentFrom:
[]
# - secretRef:
# name: quickwit
# - configMapRef:
# name: quickwit

configMaps: []
configMaps:
[]
# - name: configmap1
# mountPath: /quickwit/configmaps/

Expand All @@ -62,9 +66,11 @@ searcher:
replicaCount: 3

# Extra env for searcher
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-searcher
# - configMapRef:
Expand All @@ -76,7 +82,8 @@ searcher:
# extraVolumeMounts -- Additional volumes to mount into Quickwit containers.
extraVolumeMounts: []

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
Expand All @@ -85,7 +92,8 @@ searcher:
# memory: 128Mi

## Pod distruption budget
podDisruptionBudget: {}
podDisruptionBudget:
{}
# maxUnavailable: 1
# minAvailable: 2

Expand All @@ -94,7 +102,8 @@ searcher:
# storage: "1Gi"
# storageClass: ""

updateStrategy: {}
updateStrategy:
{}
# type: RollingUpdate

startupProbe:
Expand All @@ -119,7 +128,8 @@ searcher:
# - Parallel
podManagementPolicy: OrderedReady

lifecycleHooks: {}
lifecycleHooks:
{}
# preStop:
# exec:
# command:
Expand Down Expand Up @@ -153,9 +163,11 @@ indexer:
replicaCount: 1

# Extra env for indexer
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-indexer
# - configMapRef:
Expand All @@ -167,7 +179,8 @@ indexer:
# extraVolumeMounts -- Additional volumes to mount into Quickwit containers.
extraVolumeMounts: []

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
Expand All @@ -176,11 +189,13 @@ indexer:
# memory: 128Mi

## Pod distruption budget
podDisruptionBudget: {}
podDisruptionBudget:
{}
# maxUnavailable: 1
# minAvailable: 2

updateStrategy: {}
updateStrategy:
{}
# type: RollingUpdate

startupProbe:
Expand Down Expand Up @@ -225,7 +240,8 @@ indexer:

affinity: {}

lifecycleHooks: {}
lifecycleHooks:
{}
# preStop:
# exec:
# command:
Expand All @@ -248,10 +264,12 @@ metastore:
replicaCount: 1

# Extra env for metastore
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
# This is the recommended way to inject `QW_METASTORE_URI` when using the postgres metastore (see https://quickwit.io/docs/configuration/metastore-config)
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-metastore
# - configMapRef:
Expand All @@ -263,15 +281,17 @@ metastore:
# extraVolumeMounts -- Additional volumes to mount into Quickwit containers.
extraVolumeMounts: []

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

updateStrategy: {}
updateStrategy:
{}
# type: RollingUpdate

startupProbe:
Expand Down Expand Up @@ -314,10 +334,15 @@ metastore:
runtimeClassName: ""

control_plane:
enabled: true

replicaCount: 1
# Extra env for control plane
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-control-plane
# - configMapRef:
Expand All @@ -329,7 +354,8 @@ control_plane:
# extraVolumeMounts -- Additional volumes to mount into Quickwit containers.
extraVolumeMounts: []

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
Expand Down Expand Up @@ -381,9 +407,11 @@ janitor:
enabled: true

# Extra env for janitor
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-janitor
# - configMapRef:
Expand All @@ -395,7 +423,8 @@ janitor:
# extraVolumeMounts -- Additional volumes to mount into Quickwit containers.
extraVolumeMounts: []

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
Expand Down Expand Up @@ -448,15 +477,18 @@ bootstrap:
enabled: false

# Extra env for bootstrap jobs
extraEnv: {}
extraEnv:
{}
# KEY: VALUE
extraEnvFrom: []
extraEnvFrom:
[]
# - secretRef:
# name: quickwit-bootstrap
# - configMapRef:
# name: quickwit-bootstrap

resources: {}
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
Expand Down Expand Up @@ -512,16 +544,16 @@ config:
# max_num_connections: 50

# storage:
# s3:
# endpoint: "http://custom-s3-endpoint"
# region: eu-east-1
# We recommend using IAM roles and permissions to access Amazon S3 resources,
# but you can specify a pair of access and secret keys if necessary.
# access_key_id: <my access key>
# secret_access_key: ${AWS_ACCESS_KEY_ID}
# azure:
# account: "<my account name>"
# access_key: ${QW_AZURE_STORAGE_ACCESS_KEY}
# s3:
# endpoint: "http://custom-s3-endpoint"
# region: eu-east-1
# We recommend using IAM roles and permissions to access Amazon S3 resources,
# but you can specify a pair of access and secret keys if necessary.
# access_key_id: <my access key>
# secret_access_key: ${AWS_ACCESS_KEY_ID}
# azure:
# account: "<my account name>"
# access_key: ${QW_AZURE_STORAGE_ACCESS_KEY}

# Indexer settings
# indexer:
Expand All @@ -539,7 +571,8 @@ config:

# Seed configuration
seed:
indexes: []
indexes:
[]
# - version: 0.8
# index_id: my-index
# doc_mapping:
Expand All @@ -562,7 +595,8 @@ seed:
# merge_factor: 10
# max_merge_factor: 12

sources: []
sources:
[]
# - index: my-index
# source:
# version: 0.8
Expand Down Expand Up @@ -632,7 +666,8 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down