blob: ca5a23bbffb26b3c7d1240a62c36ef9857cd5fa6 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2{{- if $isDistributed -}}
3apiVersion: v1
4kind: Service
5metadata:
6 name: {{ include "loki.querierFullname" . }}
7 namespace: {{ .Release.Namespace }}
8 labels:
9 {{- include "loki.querierLabels" . | nindent 4 }}
10 {{- with .Values.querier.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.querier.appProtocol.grpc }}
29 appProtocol: {{ .Values.querier.appProtocol.grpc }}
30 {{- end }}
31 selector:
32 {{- include "loki.querierSelectorLabels" . | nindent 4 }}
33{{- end -}}