cert-controller-service.yaml 642 B

1234567891011121314151617181920
  1. {{- if .Values.certController.prometheus.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "external-secrets.fullname" . }}-cert-controller-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.certController.prometheus.service.port | quote }}
  12. spec:
  13. type: ClusterIP
  14. ports:
  15. - port: {{ .Values.certController.prometheus.service.port }}
  16. protocol: TCP
  17. name: metrics
  18. selector:
  19. {{- include "external-secrets-cert-controller.selectorLabels" . | nindent 4 }}
  20. {{- end }}