Files
devops-infra-helm-charts-gcp/helm-templates/bifrost/templates/service-headless.yaml
T
2026-08-26 03:39:42 +05:30

31 lines
918 B
YAML

{{- if and (eq .Values.storage.mode "sqlite") .Values.storage.persistence.enabled (not .Values.storage.persistence.existingClaim) }}
# Headless service for StatefulSet pod DNS resolution
apiVersion: v1
kind: Service
metadata:
name: {{ include "bifrost.fullname" . }}-headless
namespace: {{ .Release.Namespace }}
labels:
{{- include "bifrost.labels" . | nindent 4 }}
spec:
type: ClusterIP
clusterIP: None
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- if .Values.bifrost.cluster.enabled }}
- port: {{ .Values.bifrost.cluster.gossip.port }}
targetPort: gossip
protocol: TCP
name: gossip
- port: {{ .Values.bifrost.cluster.gossip.port }}
targetPort: gossip-udp
protocol: UDP
name: gossip-udp
{{- end }}
selector:
{{- include "bifrost.serverSelectorLabels" . | nindent 4 }}
{{- end }}