mirror of https://git.rancher.io/charts
30 lines
885 B
YAML
30 lines
885 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: '{{ template "gatekeeper.name" . }}'
|
||
|
chart: '{{ template "gatekeeper.name" . }}'
|
||
|
gatekeeper.sh/system: "yes"
|
||
|
heritage: '{{ .Release.Service }}'
|
||
|
release: '{{ .Release.Name }}'
|
||
|
name: gatekeeper-webhook-service
|
||
|
namespace: '{{ .Release.Namespace }}'
|
||
|
spec:
|
||
|
{{- if .Values.service }}
|
||
|
type: {{ .Values.service.type | default "ClusterIP" }}
|
||
|
{{- if .Values.service.loadBalancerIP }}
|
||
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
ports:
|
||
|
- port: 443
|
||
|
targetPort: webhook-server
|
||
|
selector:
|
||
|
app: '{{ template "gatekeeper.name" . }}'
|
||
|
chart: '{{ template "gatekeeper.name" . }}'
|
||
|
control-plane: controller-manager
|
||
|
gatekeeper.sh/operation: webhook
|
||
|
gatekeeper.sh/system: "yes"
|
||
|
heritage: '{{ .Release.Service }}'
|
||
|
release: '{{ .Release.Name }}'
|