summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-08-28 19:22:13 +0300
committerGitHub <noreply@github.com>2018-08-28 19:22:13 +0300
commit3e7247891dd932dac6e1969eae7ad582cc2902d1 (patch)
treec1b70edd92d7cd5c1c883abdce1d82139c4ef604
parent0c5fc6d7fd899a6bc67a446ab43e53290d8571e4 (diff)
parent6bb2f311e2bbb059e81b27c40b9aac2d294f1071 (diff)
downloadwekan-3e7247891dd932dac6e1969eae7ad582cc2902d1.tar.gz
wekan-3e7247891dd932dac6e1969eae7ad582cc2902d1.tar.bz2
wekan-3e7247891dd932dac6e1969eae7ad582cc2902d1.zip
Merge pull request #1865 from InfoSec812/InfoSec812-openshift-route-parameterized
Update OpenShift template to add Route and parameterize
-rw-r--r--openshift/wekan.yml37
1 files changed, 35 insertions, 2 deletions
diff --git a/openshift/wekan.yml b/openshift/wekan.yml
index dd23f6ea..0bc96ce8 100644
--- a/openshift/wekan.yml
+++ b/openshift/wekan.yml
@@ -147,7 +147,7 @@ objects:
- name: MONGO_URL
value: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}:27017/${MONGODB_DATABASE}
- name: ROOT_URL
- value: http://localhost
+ value: https://${FQDN}/
- name: PORT
value: "8080"
ports:
@@ -272,12 +272,45 @@ objects:
from:
kind: ImageStreamTag
name: mongodb:${MONGODB_VERSION}
- namespace: "${NAMESPACE}"
+ namespace: "openshift"
lastTriggeredImage: ''
type: ImageChange
- type: ConfigChange
status: {}
+- apiVersion: route.openshift.io/v1
+ kind: Route
+ metadata:
+ labels:
+ app: wekan
+ service: wekan
+ template: wekan-mongodb-persistent-template
+ name: wekan
+ namespace: ${NAMESPACE}
+ spec:
+ host: ${FQDN}
+ port:
+ targetPort: wekan
+ tls:
+ termination: edge
+ to:
+ kind: Service
+ name: wekan
+ weight: 100
+ wildcardPolicy: None
+ status:
+ ingress:
+ - conditions:
+ - lastTransitionTime: '2018-08-28T14:45:21Z'
+ status: 'True'
+ type: Admitted
+ host: ${FQDN}
+ routerName: router
+ wildcardPolicy: None
parameters:
+- description: The Fully Qualified Hostname (FQDN) of the application
+ displayName: FQDN
+ name: FQDN
+ required: true
- description: Maximum amount of memory the container can use.
displayName: Memory Limit
name: MEMORY_LIMIT