1.

What is a route and how can you create a simple HTTP-based route to a web application?

Answer»

You can use a ROUTE to host your app at a public URL. Depending on your application's network security setup, it can be secure or insecure. An HTTP-based route is an unsecured route that provides a service on an unsecured application port and employs the FUNDAMENTAL HTTP ROUTING protocol. Using the hello-openshift application as an example, the following technique explains how to construct a simple HTTP-based route to a WEB application.

Prerequisites:

  • You have the OpenShift CLI installed (oc).
  • As an administrator, you are logged in.
  • You have a web application that exposes a port and a TCP endpoint that listens on the port for traffic.

Procedure to create a simple HTTP-based route to a web application:

  • Make a project with the name hello-openshift.
  • In the project, make a pod.
  • Make an openshift service called hello-openshift.
  • Make an unsecured route to the hello-openshift app.


Discussion

No Comment Found