Preface
As an application developer, you can deploy your Quarkus applications to OpenShift using a single Maven command. This functionality is provided by the quarkus-openshift
extension that supports multiple deployment options, including the Docker build strategy and the Source-to-Image (S2I) strategy.
In the Red Hat build of Quarkus documentation you will learn the recommended workflows to deploy your Quarkus applications to production environments. To learn about alternative deployments, see the Quarkus community documentation.
Prerequisites
-
Have OpenJDK (JDK) 11 installed and the
JAVA_HOME
environment variable set to specify the location of the Java SDK. - Have Apache Maven 3.8.1 or higher installed.
Have a Quarkus Maven project that includes the
quarkus-openshift
extension.- To add the Quarkus OpenShift extension, see Adding the Quarkus Openshift extension.
Have access to a Red Hat OpenShift Container Platform cluster and the latest version of the OpenShift CLI (oc) installed.
- For information about installing oc, see Installing and configuring OpenShift Container Platform clusters.
Login to OpenShift using
oc
and select your project.- To verify the OpenShift project namespace, see Verifying the OpenShift project namespace.