webhook-service.yaml 834 B

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