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:
- Select the Container images option. This loads the Deploy Image screen.
- Paste quay.io/evanshortiss/rhoam-quarkus-openapi:latest into the Image name from an external registry field.
- Change the Runtime icon to Quarkus.
- Scroll down, and uncheck the Create a route to the Application box.
- Click the Create button.
- 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 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.
- 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.