Expose the route

In this section, you will be learning how to expose an insecure route.

  • View information about the service

oc get svc myguestbook
  • Notice that the application isn't accessible externally, we have only exposed the deployment internally, to make it externally accessible use the following command

oc expose svc myguestbook
  • Now to get the route using the following command

oc get routes
  • copy and paste the link in your browser, you will be redirected to a web page like the following screenshot. Notice that the webpage is not secure because we haven't used any type of encryption yet.

  • Since you will be using the same application to create an edge route, make sure to delete the route before moving to the next step

oc delete route myguestbook

Last updated

Was this helpful?