| 12345678910111213141516171819202122232425262728293031 |
- {{- if .Values.webhook.create }}
- apiVersion: v1
- kind: Service
- metadata:
- name: {{ include "external-secrets.fullname" . }}-webhook
- namespace: {{ .Release.Namespace | quote }}
- labels:
- {{- include "external-secrets-webhook.labels" . | nindent 4 }}
- external-secrets.io/component : webhook
- {{- if .Values.webhook.prometheus.enabled}}
- annotations:
- prometheus.io/path: "/metrics"
- prometheus.io/scrape: "true"
- prometheus.io/port: {{ .Values.prometheus.service.port | quote }}
- {{- end }}
- spec:
- type: ClusterIP
- ports:
- - port: 443
- targetPort: {{ .Values.webhook.port }}
- protocol: TCP
- name: webhook
- {{- if .Values.webhook.prometheus.enabled}}
- - port: {{ .Values.webhook.prometheus.service.port}}
- targetPort: {{ .Values.webhook.prometheus.service.port}}
- protocol: TCP
- name: metrics
- {{- end }}
- selector:
- {{- include "external-secrets-webhook.selectorLabels" . | nindent 4 }}
- {{- end }}
|