service.yaml 607 B

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