Add a Quarkus application and deploy to OpenShift

Click on the +Add menu as shown in Figure 1. You will now deploy a prebuilt REST API that has been built using the Quarkus framework for Java:

 

Choose the “Container images” tile from the OpenShift console.
Figure 1: Choose the “Container images” tile from the OpenShift console.

 

  1. Select the Container images option. This loads the Deploy Image screen.
  2. Paste quay.io/evanshortiss/rhoam-quarkus-openapi:latest into the Image name from an external registry field.
  3. Change the Runtime icon to Quarkus.
  4. Scroll down, and uncheck the Create a route to the Application box.
  5. Click the Create button.
  6. The Quarkus application will be deployed as a single container instance, or Kubernetes pod. This deployment is reflected in the Topology View in Figure 2. The pod should be surrounded by a blue ring to indicate that the application is in a healthy state.

 

The rhoam-quarkus-openapi service is deployed.
Figure 2: The rhoam-quarkus-openapi service is deployed.

 

  1. The Quarkus application has an associated Service, shown in the box on the right in Figure 2. This means that applications running in the same namespace, or in namespaces with access to your application on this OpenShift cluster, can communicate with the applications on the specified port. 
  2. No route is associated with the application. This means that external traffic cannot be routed to this application. This design is secure, but not very useful if you want to allow other developers to consume your API.