Files
bifrost/helm-charts/bifrost/templates/service.yaml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

31 lines
812 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "bifrost.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "bifrost.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
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 }}