Overview: How to create a Camel integration and deploy it as a serverless service

Introduction
This is a step-by-step guide to creating an Apache Camel integration and deploying it as a Knative serverless service (close to low-code/no-code) using the community edition of the Visual Studio Code (VS Code) extension Karavan.
Launch a new workspace in Red Hat OpenShift Dev Spaces and execute a command inside the pod
We will create a Camel file using Red Hat OpenShift Dev Spaces and Karavan, scaffold a Quarkus project using the JBang command-line interface (CLI), package it as container images, and deploy it as a Knative serverless service in Red Hat OpenShift (Figure 1).
The application we will develop is a simple Knative service running a Camel route that logs the HTTP body and replies back the same content to the Curl command (Figure 2).
Get started
First, get your no-cost, 30-day OpenShift sandbox environment.
- Once you successfully log in to the Developer Sandbox, select Red Hat OpenShift Dev Spaces from the menu (Figure 3).
- The Create Workspace tab will appear. Under Select a Sample, launch an Empty Workspace (Figure 4).
- From the menu, scroll down to Terminal, then select New Terminal (Figure 5).
- Run the command
lscpu
. You are running the command inside a pod (Figure 6a). Note: The output shows that you are running in the pod, depending on where the pod is and which CPU architecture OpenShift is sitting on, not your laptop.
For example, if you runlscpu
in OpenShift running in ppc64le, you will see something like Figure 6b. - Run the command to install the latest JBang CLI (Figure 7).
curl -Ls https://sh.jbang.dev | bash -s - app setup source ~/.bashrc jbang version
Congratulations! You have successfully launched an empty workspace in OpenShift Dev Spaces and executed a command inside the pod.