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 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 From 0e79bd25ed323490bda88ce36536410a7f7b56d4 Mon Sep 17 00:00:00 2001 From: Cansu Kavili Date: Wed, 8 Apr 2020 14:33:29 +0200 Subject: values file updated --- helm/wekan/templates/route.yaml | 2 -- helm/wekan/values.yaml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/helm/wekan/templates/route.yaml b/helm/wekan/templates/route.yaml index 7f357ea5..9a55591d 100644 --- a/helm/wekan/templates/route.yaml +++ b/helm/wekan/templates/route.yaml @@ -1,7 +1,5 @@ {{- if .Values.route.enabled -}} {{- $fullName := include "wekan.fullname" . -}} -{{- $servicePort := .Values.service.port -}} -{{- $ingressPath := .Values.ingress.path -}} apiVersion: route.openshift.io/v1 kind: Route metadata: diff --git a/helm/wekan/values.yaml b/helm/wekan/values.yaml index 7597c407..8211f495 100644 --- a/helm/wekan/values.yaml +++ b/helm/wekan/values.yaml @@ -60,7 +60,7 @@ ingress: # - wekan-example.local route: - enabled: true + enabled: false resources: requests: -- cgit v1.2.3-1-g7c22 From a3d44b07749443c67e17aec7d2bb24264a581946 Mon Sep 17 00:00:00 2001 From: Cansu Kavili Date: Wed, 8 Apr 2020 14:38:55 +0200 Subject: README updated --- helm/wekan/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helm/wekan/README.md b/helm/wekan/README.md index d3af930c..38cb5fed 100644 --- a/helm/wekan/README.md +++ b/helm/wekan/README.md @@ -56,3 +56,10 @@ mongodb-replicaset: This section controls the scale of the MongoDB redundant Replica Set. **replicas:** This is the number of MongoDB instances to include in the set. You can set this to 1 for a single server - this will still allow you to scale-up later with a helm upgrade. + +### Install OCP route +If you use this chart to deploy Wekan on an OCP cluster, you can create route instead of ingress with following command: + +``` bash +$ helm template --set route.enabled=true,ingress.enabled=false values.yaml . | oc apply -f- +``` -- cgit v1.2.3-1-g7c22