Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 1 | {{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}} |
| 2 | {{- if and $isDistributed .Values.ruler.enabled }} |
| 3 | apiVersion: v1 |
| 4 | kind: Service |
| 5 | metadata: |
| 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 }} |
| 16 | spec: |
| 17 | type: ClusterIP |
| 18 | clusterIP: None |
| 19 | ports: |
| 20 | - name: http-metrics |
| 21 | port: 3100 |
Mohammed Naser | 7d1623e | 2024-06-17 09:12:39 -0400 | [diff] [blame] | 22 | targetPort: http-metrics |
Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 23 | 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 }} |