blob: 7bd47ef62c51e060a46c1e71fc3318b8af4b01de [file] [log] [blame]
Giorgi Lekveishviliee15ee22024-03-28 12:35:10 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ .Release.Name }}-git-backend-service
5 labels:
6 app.kubernetes.io/component: git-backend
7 app.kubernetes.io/instance: {{ .Release.Name }}
8 chart: {{ template "gerrit-replica.chart" . }}
9 heritage: {{ .Release.Service }}
10 release: {{ .Release.Name }}
11 {{- if .Values.additionalLabels }}
12{{ toYaml .Values.additionalLabels | indent 4 }}
13 {{- end }}
14 {{- if .Values.gitBackend.service.additionalAnnotations }}
15 annotations:
16{{ toYaml .Values.gitBackend.service.additionalAnnotations | indent 4 }}
17 {{- end }}
18spec:
19 {{ with .Values.gitBackend.service }}
20 {{- if .loadBalancerSourceRanges -}}
21 loadBalancerSourceRanges:
22{{- range .loadBalancerSourceRanges }}
23 - {{ . | quote }}
24{{- end }}
25 {{- end }}
26 ports:
27 - name: http
28 port: {{ .http.port }}
29 targetPort: 80
30 type: {{ .type }}
31 externalTrafficPolicy: {{ .externalTrafficPolicy }}
32 {{- end }}
33 selector:
34 app.kubernetes.io/component: git-backend
35 app.kubernetes.io/instance: {{ .Release.Name }}