summaryrefslogtreecommitdiffstats
path: root/helm/wekan/templates
diff options
context:
space:
mode:
authorCansu Kavili <cansukavili@gmail.com>2020-04-08 13:59:33 +0200
committerCansu Kavili <cansukavili@gmail.com>2020-04-08 13:59:33 +0200
commit71f7a680b604dc0c9b3a26e803177f271a93ef83 (patch)
tree83f749431ff39d0cb3b36efcf50452c1a976999f /helm/wekan/templates
parent9083c341c146952241f84e9cb997c307d5830a16 (diff)
downloadwekan-71f7a680b604dc0c9b3a26e803177f271a93ef83.tar.gz
wekan-71f7a680b604dc0c9b3a26e803177f271a93ef83.tar.bz2
wekan-71f7a680b604dc0c9b3a26e803177f271a93ef83.zip
Openshift Route def added
Diffstat (limited to 'helm/wekan/templates')
-rw-r--r--helm/wekan/templates/route.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/helm/wekan/templates/route.yaml b/helm/wekan/templates/route.yaml
new file mode 100644
index 00000000..7f357ea5
--- /dev/null
+++ b/helm/wekan/templates/route.yaml
@@ -0,0 +1,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 }} \ No newline at end of file