blob: d0fb34e38bf80548d83cffd2940605f732e4e59a [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001{{- with .Values.monitoring.lokiCanary -}}
2{{- if .enabled -}}
3---
4apiVersion: v1
5kind: Service
6metadata:
7 name: {{ include "loki-canary.fullname" $ }}
Giovanni Tirloni52306ad2024-04-12 15:35:05 -03008 namespace: {{ $.Release.Namespace }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00009 labels:
10 {{- include "loki-canary.labels" $ | nindent 4 }}
Giovanni Tirloni52306ad2024-04-12 15:35:05 -030011 {{- 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 Naser8a2c8fb2023-02-19 17:23:55 +000024spec:
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 -}}