Preface

As an application developer, you can deploy a Quarkus application on Red Hat OpenShift Container Platform using OpenShift Serverless Knative Serving.

By using OpenShift Serverless Knative Serving, you can scale services up and down depending on the load size. Scaling down services that are currently not requested improves memory capabilities.

Note

Quarkus is supported to run as a native executable or as a Java application using an OpenJDK. For native executables, use the Red Hat UBI 8 minimal image. For OpenJDK, use the Red Hat 8 UBI Java image.

Prerequisites

  • OpenJDK 11 is installed and the JAVA_HOME environment variable specifies the location of the Java SDK. Red Hat build of Open JDK is available from the Software Downloads page in the Red Hat Customer Portal (login required).
  • Apache Maven 3.6.2 or higher is installed. Maven is available from the Apache Maven Project website.
  • You have a Quarkus Maven project. For instructions on building a simple Quarkus application with Maven, see Getting started with Quarkus.

    Note

    For a completed example of a Quarkus Maven project, download the Quarkus quickstart archive or clone the Quarkus Quickstarts Git repository. The example is in the getting-started directory.

  • You have access to a Red Hat OpenShift Container Platform cluster and the latest version of the OpenShift CLI (oc) is installed. For information about installing oc, see the "Installing the CLI" section of the Installing and configuring OpenShift Container Platform clusters guide.
  • OpenShift Serverless operator is installed and verified. See the Installing OpenShift Serverless guide for more details.
  • OpenShift Knative Serving is installed and verified. See the Installing Knative Serving section of the Installing OpenShift Serverless guide for more details.
  • For native compilation, a container environment like Podman or Docker is required.
  • Optionally install the kn CLI tool.
Note

Currently, only Knative Serving is supported in the Red Hat build of Quarkus. Knative Eventing is currently tech preview.