22 lines
472 B
YAML
22 lines
472 B
YAML
{{- if .Values.webhook.enable -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "polaris.fullname" . }}-webhook
|
|
{{- if .Values.templateOnly }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "polaris.labels" . | nindent 4 }}
|
|
spec:
|
|
ports:
|
|
- name: webhook
|
|
port: 443
|
|
protocol: TCP
|
|
targetPort: 9876
|
|
selector:
|
|
{{- include "polaris.selectors" . | nindent 4 }}
|
|
component: webhook
|
|
type: ClusterIP
|
|
{{- end -}}
|