blob: 38022a3e31935b52242321dc9ca09670cf306108 [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- with .Values.lokiCanary -}}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00002{{- if .enabled -}}
3---
4apiVersion: v1
5kind: Service
6metadata:
7 name: {{ include "loki-canary.fullname" $ }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -03008 namespace: {{ $.Release.Namespace }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00009 labels:
10 {{- include "loki-canary.labels" $ | nindent 4 }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -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 -}}