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
16 changes: 13 additions & 3 deletions charts/qdrant/templates/service-headless.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.headlessService.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -6,15 +7,23 @@ metadata:
{{- include "qdrant.labels" . | nindent 4 }}
{{- include "qdrant.additionalLabels" . | nindent 4 }}
app.kubernetes.io/component: cluster-discovery
{{- with .Values.service.additionalLabels }}
{{- $additionalLabels := .Values.service.additionalLabels }}
{{- if not (kindIs "invalid" .Values.headlessService.additionalLabels) }}
{{- $additionalLabels = .Values.headlessService.additionalLabels }}
{{- end }}
{{- with $additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or .Values.service.annotations .Values.additionalAnnotations }}
{{- $annotations := .Values.service.annotations }}
{{- if not (kindIs "invalid" .Values.headlessService.annotations) }}
{{- $annotations = .Values.headlessService.annotations }}
{{- end }}
{{- if or $annotations .Values.additionalAnnotations }}
annotations:
{{- with .Values.additionalAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
{{- with $annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
Expand All @@ -33,3 +42,4 @@ spec:
{{- end }}
selector:
{{- include "qdrant.selectorLabels" . | nindent 4 }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/qdrant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ service:
protocol: TCP
checksEnabled: false

headlessService:
# Set to false to disable the headless service entirely.
# Useful when cluster mode is disabled (config.cluster.enabled: false).
enabled: true
# Overrides service.annotations for the headless service.
# null (default): inherits service.annotations (backwards-compatible behaviour).
# {}: no annotations on the headless service.
# {key: val}: only these annotations.
annotations: null
# Overrides service.additionalLabels for the headless service.
# null (default): inherits service.additionalLabels.
# {}: no additional labels on the headless service.
additionalLabels: null

ingress:
enabled: false
ingressClassName: ""
Expand Down