webhook-service.yaml 880 B

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