2020-07-23 00:58:59 +00:00
|
|
|
{{- if .Values.metrics.enabled }}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ include "argocd-notifications.name" . }}-metrics
|
|
|
|
labels:
|
|
|
|
{{- include "argocd-notifications.metrics.labels" . | nindent 4 }}
|
2021-06-03 10:07:47 +00:00
|
|
|
{{- with .Values.metrics.service.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.metrics.service.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-07-23 00:58:59 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
{{- include "argocd-notifications.selectorLabels" . | nindent 4 }}
|
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
port: {{ .Values.metrics.port }}
|
|
|
|
targetPort: {{ .Values.metrics.port }}
|
|
|
|
{{- end }}
|