This project is a simple Quarkus application that serves as a redirector for Dev Spaces in a multicluster environment.
You can run your application in dev mode that enables live coding using:
mvn quarkus:devThe application can be packaged using:
mvn packageIt produces the quarkus-run.jar file in the target/quarkus-app/ directory.
Be aware that it’s not an “über-jar” as the dependencies are copied into the target/quarkus-app/lib/ directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar.
You can create a native executable using:
mvn package -DnativeOr, if you don't have GraalVM installed, you can run the native executable build in a container using:
mvn package -Dnative -Dquarkus.native.container-build=trueYou can then execute your native executable with: ./target/devspaces-multicluster-redirector-1.0.0-SNAPSHOT-runner
To build a container image, you can use the following command:
mvn package -Dquarkus.container-image.build=trueThis will build a container image using the default container runtime (e.g., Docker or Podman).
The openshift directory contains a Kustomize configuration for deploying the application to OpenShift with an OAuth Proxy sidecar.
To deploy the application, run the following command from the root of the project:
kubectl apply -k openshift