blob: d762cbf65d95f17940ab099276ea5695c54feb40 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2{{- if and $isDistributed (or (not .Values.ingester.zoneAwareReplication.enabled) .Values.ingester.zoneAwareReplication.migration.enabled) }}
3apiVersion: v1
4kind: Service
5metadata:
6 name: {{ include "loki.ingesterFullname" . }}
7 namespace: {{ .Release.Namespace }}
8 labels:
9 {{- include "loki.ingesterLabels" . | nindent 4 }}
10 {{- with .Values.ingester.serviceLabels }}
11 {{- toYaml . | nindent 4 }}
12 {{- end }}
13 {{- with .Values.loki.serviceAnnotations }}
14 annotations:
15 {{- toYaml . | nindent 4 }}
16 {{- end }}
17spec:
18 type: ClusterIP
19 ports:
20 - name: http-metrics
21 port: 3100
22 targetPort: http-metrics
23 protocol: TCP
24 - name: grpc
25 port: 9095
26 targetPort: grpc
27 protocol: TCP
28 {{- if .Values.ingester.appProtocol.grpc }}
29 appProtocol: {{ .Values.ingester.appProtocol.grpc }}
30 {{- end }}
31 selector:
32 {{- include "loki.ingesterSelectorLabels" . | nindent 4 }}
33{{- end -}}