From 71f7a680b604dc0c9b3a26e803177f271a93ef83 Mon Sep 17 00:00:00 2001 From: Cansu Kavili Date: Wed, 8 Apr 2020 13:59:33 +0200 Subject: Openshift Route def added --- helm/wekan/templates/route.yaml | 25 +++++++++++++++++++++++++ helm/wekan/values.yaml | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 helm/wekan/templates/route.yaml (limited to 'helm') 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 diff --git a/helm/wekan/values.yaml b/helm/wekan/values.yaml index adc2c855..7597c407 100644 --- a/helm/wekan/values.yaml +++ b/helm/wekan/values.yaml @@ -59,6 +59,9 @@ ingress: # hosts: # - wekan-example.local + route: + enabled: true + resources: requests: memory: 128Mi -- cgit v1.2.3-1-g7c22