Quarkus is a Kubernetes-native Java framework and offers a great developer experience with extensions for most modern development and management needs while enabling developers to write imperative and reactive code. OpenShift is a unified platform to run your applications at scale while offering a great developer experience for managing applications and their infrastructure. Quarkus and OpenShif are a great combination. Simply put, the combination of OpenShift and Quarkus enables application engineering teams to become highly productive and have a reliable runtime for their applications at scale.
In this article let’s understand how developers can quickly deploy their applications to OpenShift without worrying about build configs, pipelines, yaml, and deployment configs. This article uses the S2I approach where developers can specify just the git repo where the code sits and OpenShift will automatically deploy and make the application available at a URL.
For the demonstration, let’s use the Red Hat Developer Sandbox which is available as a free subscription to deploy our Quarkus application to OpenShift. Follow the instructions below to create a basic application. For detailed information, proceed to the Quarkus Product Page. Once your application is ready, publish it to a git repository. For the sake of simplicity, let’s use a readily available Quarkus repository from https://github.com/quarkusio/quarkus-quickstarts
Deploying your Quarkus Application to OpenShiftDeploying your Quarkus Application to OpenShift
- Signup for the free Developer Sandbox at https://developers.redhat.com/developer-sandbox
- Start your Sandbox
- Choose the import from Git Option under the “+Add” section
- Input your repo URL. Once your input your repo URL, OpenShift automatically fills in the config to run your application
- Click on Create
- Wait for OpenShift to build your application
- Once the process is done, click on this icon to open the URL of your application
- Congrats, your Quarkus application is now available on OpenShift
Developers can replicate the same steps on their cluster to deploy Quarkus applications on OpenShift. For more information and to stay updated about Quarkus on OpenShift, please visit the Red Hat build of Quarkus product page.
Last updated: April 12, 2024