mirror of https://git.rancher.io/charts
98 lines
2.3 KiB
YAML
98 lines
2.3 KiB
YAML
|
{{- if .Values.controller.enabled -}}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: neuvector-svc-controller
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
chart: {{ template "neuvector.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
clusterIP: None
|
||
|
ports:
|
||
|
- port: 18300
|
||
|
protocol: "TCP"
|
||
|
name: "cluster-tcp-18300"
|
||
|
- port: 18301
|
||
|
protocol: "TCP"
|
||
|
name: "cluster-tcp-18301"
|
||
|
- port: 18301
|
||
|
protocol: "UDP"
|
||
|
name: "cluster-udp-18301"
|
||
|
selector:
|
||
|
app: neuvector-controller-pod
|
||
|
{{- if .Values.controller.apisvc.type }}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: neuvector-svc-controller-api
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{- with .Values.controller.apisvc.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml . | indent 4 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
chart: {{ template "neuvector.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
type: {{ .Values.controller.apisvc.type }}
|
||
|
ports:
|
||
|
- port: 10443
|
||
|
protocol: "TCP"
|
||
|
name: "controller-api"
|
||
|
selector:
|
||
|
app: neuvector-controller-pod
|
||
|
{{ end -}}
|
||
|
{{- if .Values.controller.federation.mastersvc.type }}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: neuvector-svc-controller-fed-master
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{- with .Values.controller.federation.mastersvc.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml . | indent 4 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
chart: {{ template "neuvector.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
type: {{ .Values.controller.federation.mastersvc.type }}
|
||
|
ports:
|
||
|
- port: 11443
|
||
|
name: fed
|
||
|
protocol: TCP
|
||
|
selector:
|
||
|
app: neuvector-controller-pod
|
||
|
{{ end -}}
|
||
|
{{- if .Values.controller.federation.managedsvc.type }}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: neuvector-svc-controller-fed-managed
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{- with .Values.controller.federation.managedsvc.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml . | indent 4 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
chart: {{ template "neuvector.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
type: {{ .Values.controller.federation.managedsvc.type }}
|
||
|
ports:
|
||
|
- port: 10443
|
||
|
name: fed
|
||
|
protocol: TCP
|
||
|
selector:
|
||
|
app: neuvector-controller-pod
|
||
|
{{ end -}}
|
||
|
{{- end -}}
|