service.yaml 616 B

123456789101112131415161718192021
  1. {{- if .Values.prometheus.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "external-secrets.fullname" . }}-metrics
  6. namespace: {{ .Release.Namespace | quote }}
  7. labels:
  8. {{- include "external-secrets.labels" . | nindent 4 }}
  9. annotations:
  10. prometheus.io/path: "/metrics"
  11. prometheus.io/scrape: "true"
  12. prometheus.io/port: {{ .Values.prometheus.service.port | quote }}
  13. spec:
  14. type: ClusterIP
  15. ports:
  16. - port: {{ .Values.prometheus.service.port }}
  17. protocol: TCP
  18. name: metrics
  19. selector:
  20. {{- include "external-secrets.selectorLabels" . | nindent 4 }}
  21. {{- end }}