jenkins-master-route.yaml 937 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
{{- if .Values.master.route.enabled }}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
  namespace: {{ template "jenkins.namespace" . }}
  labels:
    app: {{ template "jenkins.fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
    component: "{{ .Release.Name }}-{{ .Values.master.componentName }}"
{{- if .Values.master.route.labels }}
{{ toYaml .Values.master.route.labels | indent 4 }}
{{- end }}
{{- if .Values.master.route.annotations }}
  annotations:
{{ toYaml .Values.master.route.annotations | indent 4 }}
{{- end }}
  name: {{ template "jenkins.fullname" . }}
spec:
  host: {{ .Values.master.route.path }}
  port:
    targetPort: http
  tls:
    insecureEdgeTerminationPolicy: Redirect
    termination: edge
  to:
    kind: Service
    name: {{ template "jenkins.fullname" . }}
    weight: 100
  wildcardPolicy: None
{{- end }}