My first application
Completion requirements
This book help you to create your first jboss application with JDSS tooling.
6. Add project in Openshift
6.6. Add Route
The jenkins task added a route.yaml dc.yaml in .openshift/resource.
You can use the route template of Middelware to build your route.yaml.
The route has :
- a name
- the url of your application
- the context root
- a reference of your service
For this exercise, I give you the content of this file. You must only change [userid].
apiVersion: v1
kind: Route
metadata:
name: trainings-hello[userId]
spec:
host: trainings-hello[userId].test.paas.socialsecurity.be
path: /trainings-hello[userid]-web
to:
kind: Service
name: trainings-hello[userId]
This file describe the route of your project. The route use the service of your application and you define the host of your application.
Here is the result in the console :

