Skip to content

Commit

Permalink
Fix: Publish DNS for not-ready pods via the headless service (#115)
Browse files Browse the repository at this point in the history
For clustering/discovery purpose, we use the headless service of the StatefulSet today. It'll provide a DNS entry for every pod of the StatefulSet. Qdrant pods use this specific DNS name as --uri, so that's what's communicated to each peer. By default the service will only provide DNS name when the pod is ready. So if a pod is not ready, other peers cannot reach it. But we should change the service to always provide DNS for a pod, regardless it's readiness, using .spec.publishNotReadyAddresses=true to allow cluster-internal traffic.
  • Loading branch information
mrIncompetent authored Dec 14, 2023
1 parent ce57be1 commit 3e74edf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/qdrant/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ metadata:
{{- end }}
spec:
clusterIP: None
publishNotReadyAddresses: true
ports:
{{- range .Values.service.ports }}
- name: {{ .name }}
Expand Down

0 comments on commit 3e74edf

Please sign in to comment.