Skip to content

Commit 2b32345

Browse files
committedMar 12, 2025
feat(runtime-overrides): Add support for runtime overrides configmap
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
1 parent 16faed3 commit 2b32345

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ chart.lock
88
.DS_store
99
deploy_key
1010
deploy_key.pub
11+
values-override.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{ if .Values.runtime_overrides.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: weaviate-runtime-overrides
6+
labels:
7+
app.kubernetes.io/name: weaviate
8+
app.kubernetes.io/managed-by: {{ .Release.Service }}
9+
data:
10+
overrides.yaml: {{ .Values.runtime_overrides.values }}
11+
{{ end }}

‎weaviate/templates/weaviateStatefulset.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,13 @@ spec:
452452
volumeMounts:
453453
- name: weaviate-config
454454
mountPath: /weaviate-config
455+
456+
{{ if .Values.runtime_overrides.enabled }}
457+
- name: weaviate-runtime-overrides
458+
configmap:
459+
name: weaviate-runtime-overrides
460+
{{ end }}
461+
455462
- name: weaviate-data
456463
mountPath: /var/lib/weaviate
457464
{{- if index .Values "backups" "gcs" "enabled" }}
@@ -506,6 +513,13 @@ spec:
506513
{{ if .Values.custom_config_map.enabled }}name: {{ .Values.custom_config_map.name }} {{ else }}name: weaviate-config{{ end }}
507514
{{- if index .Values "backups" "gcs" "enabled" }}
508515
{{- if and (index .Values "backups" "gcs" "secrets") (index .Values "backups" "gcs" "secrets" "GOOGLE_APPLICATION_CREDENTIALS") }}
516+
517+
{{ if .Values.runtime_overrides.enabled }}
518+
- name: weaviate-runtime-overrides
519+
configmap:
520+
name: weaviate-runtime-overrides
521+
{{ end }}
522+
509523
- name: gcs-service-account-credentials-volume
510524
secret:
511525
secretName: backup-gcs

‎weaviate/values.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2012,6 +2012,14 @@ custom_config_map:
20122012
enabled: false
20132013
name: 'custom-config'
20142014

2015+
# runtime_overrides is a way to override some weaviate configs during runtime without needing pod restarts.
2016+
runtime_overrides:
2017+
enabled: false
2018+
path: ""
2019+
load_interval: "2m"
2020+
values:
2021+
maximum_collection_count: 100
2022+
20152023
# Pass any annotations to Weaviate pods
20162024
annotations:
20172025

@@ -2047,7 +2055,7 @@ globalPriorityClassName: ""
20472055
# Optionally enable a pod disruption budget for a given service.
20482056
# One should define either minAvailable or maxUnavailable, but not both, as they are mutually exclusive.
20492057
# We recommend to set Weaviate's minAvailable value equal to the number of nodes which provide quorum.
2050-
# Please note that pod disruption budgets are only applied when the corresponding module is enabled.
2058+
# Please note that pod disruption budgets are only applied when the corresponding module is enabled.
20512059
# For instance, if the text2vec-transformers module is disabled, its associated pod disruption budget will not be deployed.
20522060
# A pod disruption budget is only activated when its respective module is enabled, allowing you to configure it as needed.
20532061
# ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/

0 commit comments

Comments
 (0)