AutoScaling - Quarkus, KNative #1002
-
Using Karavan, Openshift, Camel Jang with below properties and trying to get to the default behaviour which is if the requests are idle, the Openshift would scale down the container to Zero. But as such it is not happenning. I tried explicitly setting the value quarkus.knative.scale-to-zero-enabled=true but still no luck? Any guidance would be helpful. camel.health.enabled=true image build propertiesquarkus.container-image.build=true deployment propertiesquarkus.kubernetes.deploy=true ############## |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
I am not an expert on Knative but I believe that it should be Openshift Serverless installed on OpenShift for that |
Beta Was this translation helpful? Give feedback.
-
In my case the Red Hat OpenShift Serverless is already installed. One more thing to worth mention, with the above set of properties, I see a configMap that is getting created with empty keys/values. not sure if all the quarkus.knative.* properties can be leveraged as part of the Karavan's project config? I was assuming that should be the case. But just wanted to mention atleast in my scenario, the below configs doesn't really seem to matter. Do I've to include any thing else in the camel.jbang.dependencies property? quarkus.knative.min-scale=0 |
Beta Was this translation helpful? Give feedback.
-
You need to export as a quarkus based project, karavan exports as camel-main only. And you need to adjust the build script that does the camel-jbang export |
Beta Was this translation helpful? Give feedback.
Well karavan does not support knative directly OOTB - You can export the project to quarkus, and try locally to see what it takes to make that work with your knative platform.