summaryrefslogtreecommitdiffstats
path: root/helm/wekan/templates/route.yaml
blob: 7f357ea5097c6ec124560067a4763386dd516661 (plain)
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
{{- if .Values.route.enabled -}}
{{- $fullName := include "wekan.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
  annotations:
    haproxy.router.openshift.io/timeout: 4m
    openshift.io/host.generated: "true"
  labels:
    app: {{ template "wekan.name" . }}
    service: {{ template "wekan.name" . }}
  name: {{ template "wekan.name" . }}
spec:
  port:
    targetPort: http
  tls:
    termination: edge
  to:
    kind: Service
    name: {{ template "wekan.name" . }}
    weight: 100
  wildcardPolicy: None
  {{- end }}