summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-08 18:30:51 +0300
committerGitHub <noreply@github.com>2020-04-08 18:30:51 +0300
commit053e47173f894cdeac4cb3806606cc4e2d23f61b (patch)
tree699ee579f5e0f0274de0735aa9c11fcb4610cdd6
parent9083c341c146952241f84e9cb997c307d5830a16 (diff)
parenta3d44b07749443c67e17aec7d2bb24264a581946 (diff)
downloadwekan-053e47173f894cdeac4cb3806606cc4e2d23f61b.tar.gz
wekan-053e47173f894cdeac4cb3806606cc4e2d23f61b.tar.bz2
wekan-053e47173f894cdeac4cb3806606cc4e2d23f61b.zip
Merge pull request #2996 from ckavili/master
Route template added to helm chart
-rw-r--r--helm/wekan/README.md7
-rw-r--r--helm/wekan/templates/route.yaml23
-rw-r--r--helm/wekan/values.yaml3
3 files changed, 33 insertions, 0 deletions
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-
+```
diff --git a/helm/wekan/templates/route.yaml b/helm/wekan/templates/route.yaml
new file mode 100644
index 00000000..9a55591d
--- /dev/null
+++ b/helm/wekan/templates/route.yaml
@@ -0,0 +1,23 @@
+{{- if .Values.route.enabled -}}
+{{- $fullName := include "wekan.fullname" . -}}
+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..8211f495 100644
--- a/helm/wekan/values.yaml
+++ b/helm/wekan/values.yaml
@@ -59,6 +59,9 @@ ingress:
# hosts:
# - wekan-example.local
+ route:
+ enabled: false
+
resources:
requests:
memory: 128Mi