Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions charts/qdrant/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.additionalInitContainers }}
{{- toYaml .Values.additionalInitContainers | trim | nindent 8 }}
{{- end }}
containers:
{{- if .Values.sidecarContainers -}}
{{- toYaml .Values.sidecarContainers | trim | nindent 8 }}
Expand Down
32 changes: 32 additions & 0 deletions charts/qdrant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,38 @@ config:
service:
enable_tls: false

# additionalInitContainers allows injecting extra init containers into the Qdrant pod.
# Init containers run to completion sequentially before the main Qdrant container starts,
# making them the correct place for node-level setup that must be done before Qdrant loads
# its collections (e.g. raising vm.max_map_count so mmap-heavy workloads do not hit
# ENOMEM when the number of virtual memory areas exceeds the kernel default of 65530).
#
# The chart already provides an 'ensure-dir-ownership' init container; entries defined
# here are appended after it.
#
# Example — raise vm.max_map_count on the host node so Qdrant can mmap many shards:
#
# additionalInitContainers:
# - name: set-vm-max-map-count
# # busybox is sufficient; any image with sysctl works.
# image: busybox
# # sysctl writes to the host kernel parameter because the container shares the
# # host kernel namespace when privileged: true. The value 262144 is Qdrant's
# # documented recommendation for production deployments with many collections.
# command: ['sysctl', '-w', 'vm.max_map_count=262144']
# securityContext:
# privileged: true
# resources:
# requests:
# cpu: 1m
# memory: 1Mi
#
# When to use this instead of sidecarContainers:
# - The action must complete *before* Qdrant starts (strict ordering guarantee).
# - The action is a one-shot setup step with no ongoing process needed afterwards.
# - You want the pod to fail fast if setup fails (init container failure blocks the pod).
additionalInitContainers: []

sidecarContainers: []
# sidecarContainers:
# - name: my-sidecar
Expand Down