-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Upload service is not starting on OpenShift after deploy.
Before moving forward:
- Install the latest quarkus client
sdk install quarkus 3.0.0.CR2
-
Or start the upload-service in dev mode and go to the dev-ui:
quarkus devormvn quarkus:dev
and navigate to http://localhost:8080/q/dev-ui -
Make sure that you are connected to an OpenShift cluster (I used the SandBox Openshift)**
Steps to reproduce:
1 - Checkout the secret-access-issue branch.
git checkout secret-access-issue
2- Navigate to upload-service
cd upload-service
3 - Before deploy the upload-service, apply the following files in order to create the DB, secret and route that upload-service needs.
kubectl apply -f ../kubernetes
4-Deploy upload-microservice via the quarkus cli:
quarkus deploy openshift --image-build
You can also deploy from the dev-ui by clicking in the corresponding link listed in the OpenShift extension.
5 - Go to OpenShift console and check the upload-service pod logs:
Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
INFO exec java -Xms125m -Xmx500m -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/quarkus-run.jar
Model classes are defined for the default persistence unit <default> but configured datasource <default> not found: the default EntityManagerFactory will not be created. To solve this, configure the default datasource. Refer to https://quarkus.io/guides/datasource for guidance.
The application is not able to access upload-service secret and can not start.