mirror of https://git.rancher.io/charts
34 lines
916 B
YAML
34 lines
916 B
YAML
{{- if .Values.openshift -}}
|
|
{{- if .Values.manager.route.enabled }}
|
|
{{- if (semverCompare ">=1.9-0" (substr 1 -1 .Capabilities.KubeVersion.GitVersion)) }}
|
|
apiVersion: route.openshift.io/v1
|
|
{{- else }}
|
|
apiVersion: v1
|
|
{{- end }}
|
|
kind: Route
|
|
metadata:
|
|
name: neuvector-route-webui
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
chart: {{ template "neuvector.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
{{- if .Values.manager.route.host }}
|
|
host: {{ .Values.manager.route.host }}
|
|
{{- end }}
|
|
to:
|
|
kind: Service
|
|
name: neuvector-service-webui
|
|
port:
|
|
targetPort: manager
|
|
tls:
|
|
termination: {{ .Values.manager.route.termination }}
|
|
{{- if or (eq .Values.manager.route.termination "reencrypt") (eq .Values.manager.route.termination "edge") }}
|
|
{{- with .Values.manager.route.tls }}
|
|
{{ toYaml . | indent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|