Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 1 | {{- with .Values.lokiCanary -}} |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 2 | {{- if .enabled -}} |
| 3 | --- |
| 4 | apiVersion: v1 |
| 5 | kind: Service |
| 6 | metadata: |
| 7 | name: {{ include "loki-canary.fullname" $ }} |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 8 | namespace: {{ $.Release.Namespace }} |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 9 | labels: |
| 10 | {{- include "loki-canary.labels" $ | nindent 4 }} |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 11 | {{- with $.Values.loki.serviceLabels }} |
| 12 | {{- toYaml . | nindent 4}} |
| 13 | {{- end }} |
| 14 | {{- with .service.labels }} |
| 15 | {{- toYaml . | nindent 4}} |
| 16 | {{- end }} |
| 17 | annotations: |
| 18 | {{- with $.Values.loki.serviceAnnotations }} |
| 19 | {{- toYaml . | nindent 4}} |
| 20 | {{- end }} |
| 21 | {{- with .service.annotations }} |
| 22 | {{- toYaml . | nindent 4}} |
| 23 | {{- end }} |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 24 | spec: |
| 25 | type: ClusterIP |
| 26 | ports: |
| 27 | - name: http-metrics |
| 28 | port: 3500 |
| 29 | targetPort: http-metrics |
| 30 | protocol: TCP |
| 31 | selector: |
| 32 | {{- include "loki-canary.selectorLabels" $ | nindent 4 }} |
| 33 | {{- end -}} |
| 34 | {{- end -}} |