blob: 1a1f0f4d2e91a2bdbd8011a62c2bb7dee8470109 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2{{- if and $isDistributed .Values.ruler.enabled }}
3apiVersion: v1
4kind: Service
5metadata:
6 name: {{ include "loki.rulerFullname" . }}
7 labels:
8 {{- include "loki.rulerSelectorLabels" . | nindent 4 }}
9 {{- with .Values.ruler.serviceLabels }}
10 {{- toYaml . | nindent 4 }}
11 {{- end }}
12 {{- with .Values.loki.serviceAnnotations }}
13 annotations:
14 {{- toYaml . | nindent 4 }}
15 {{- end }}
16spec:
17 type: ClusterIP
18 clusterIP: None
19 ports:
20 - name: http-metrics
21 port: 3100
Mohammed Naser7d1623e2024-06-17 09:12:39 -040022 targetPort: http-metrics
Mohammed Naser65cda132024-05-02 14:34:08 -040023 protocol: TCP
24 - name: grpc
25 port: 9095
26 targetPort: grpc
27 protocol: TCP
28 {{- with .Values.ruler.appProtocol.grpc }}
29 appProtocol: {{ . }}
30 {{- end }}
31 selector:
32 {{- include "loki.rulerSelectorLabels" . | nindent 4 }}
33{{- end }}