From d2de66b4718653a4971b0f07e993792ec386dfcd Mon Sep 17 00:00:00 2001 From: Fabrizio Bonavita Date: Wed, 25 May 2022 13:20:06 +0200 Subject: [PATCH] Added config map --- Chart.yaml | 2 +- templates/configmap.yaml | 7 +++++++ templates/statefulset.yaml | 8 ++++++++ values.yaml | 31 +++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 templates/configmap.yaml diff --git a/Chart.yaml b/Chart.yaml index 68a2e09..ef7b99d 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.16.0" +appVersion: "0.7.0" diff --git a/templates/configmap.yaml b/templates/configmap.yaml new file mode 100644 index 0000000..5ec219e --- /dev/null +++ b/templates/configmap.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: qdrant-config +data: + config.yaml: | + {{- toYaml .Values.config | nindent 4 }} \ No newline at end of file diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 1b6c880..682aa0e 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -60,6 +60,9 @@ spec: volumeMounts: - name: qdrant-storage mountPath: /qdrant/storage + - name: qdrant-config + mountPath: /qdrant/config + {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -72,6 +75,11 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + volumes: + - name: qdrant-config + configMap: + name: qdrant-config + volumeClaimTemplates: - metadata: name: qdrant-storage diff --git a/values.yaml b/values.yaml index 621625e..b09b622 100644 --- a/values.yaml +++ b/values.yaml @@ -59,3 +59,34 @@ affinity: {} persistence: accessModes: [ "ReadWriteOnce" ] size: 1Gi + +config: + debug: false + log_level: INFO + storage: + storage_path: ./storage + wal: + wal_capacity_mb: 32 + wal_segments_ahead: 0 + performance: + max_search_threads: 0 + optimizers: + deleted_threshold: 0.2 + vacuum_min_vector_number: 1000 + default_segment_number: 5 + max_segment_size: 200000 + memmap_threshold: 50000 + indexing_threshold: 20000 + payload_indexing_threshold: 10000 + flush_interval_sec: 1 + max_optimization_threads: 0 + hnsw_index: + m: 16 + ef_construct: 100 + full_scan_threshold: 10000 + service: + max_request_size_mb: 32 + max_workers: 0 + host: 0.0.0.0 + http_port: 6333 + grpc_port: null \ No newline at end of file