Now we need to connect to our application

Exposing our application will create a route that we can use to access it.

In the command line type this:

oc create route edge nexus --service=nexus

Now let’s take a look at our new route by running

oc describe route nexus

We should see something like

Name:                   nexus
Namespace:              kevin-persistence-test-2-workspace
Created:                8 minutes ago
Labels:                 app=nexus
                        app.kubernetes.io/component=nexus
                        app.kubernetes.io/instance=nexus
Annotations:            openshift.io/host.generated=true
Requested Host:         nexus-kevin-persistence-test-2-workspace.apps.aegis-core.fdlabs.dev
                          exposed on router default (host router-default.apps.aegis-core.fdlabs.dev) 8 minutes ago
Path:                   <none>
TLS Termination:        edge
Insecure Policy:        <none>
Endpoint Port:          8081-tcp

Service:        nexus
Weight:         100 (100%)
Endpoints:      172.31.7.196:8081

Connect to your route by copying and pasting the Requested Host into a new tab in your browser.