Replies: 4 comments 12 replies
-
Beta Was this translation helpful? Give feedback.
-
This sounds fairly hacky, in particular there is no guarantee that files will stay under 1mb. |
Beta Was this translation helpful? Give feedback.
-
@stuartwdouglas you are right, I forgot to mention that this doesn't need to be perfect, we can always fallback to run the augmentation before starting, although the user will pay quite long start-up times. The first attempt we did was using a PVC, it makes the approach less hackish (e.g. no size limit, and simple folder mounting) but the user will incur in additional costs (from the cloud provider). The problem statement sounds as follows:
The last point is compromised by the fact that we need to run the re-augmentation every time a pod starts. |
Beta Was this translation helpful? Give feedback.
-
I can't comment on the re-augmentation part, but I will comment on the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
in the Keycloak project we are using Quarkus re-augmentation,
to give users a better experience(and the promised fast start-up time) while using the new operator on Kubernetes we want to "mask" this technical detail and perform the augmentation once.
Ref: keycloak/keycloak#9605
I implemented here: https://github.com/andreaTP/poc-operator-mutable-jar a POC to seamlessly swap the mutable jars with the "augmented" once in the final Keycloak deployment, the steps are the following:
Job
with a Keycloak container sharing the same configuration as the mainDeployment
but running thebuild && sleep infinity
command (to leave the pod live after the augmentation has been performed)build
to finishmutable-jar
s from thePod
and store them back asSecret
s (one file/one secret to avoid hitting the maximum size of aSecret
of 1Mb)Job
Deployment
for the main Keycloak container appropriately mounting the augmented files from the corresponding secretsHere I'm asking if anyone else have attempted to do the same or something similar, if the approach is sound from the Quarkus perspective and if there is any additional guideline I should take into consideration.
Thanks a lot in advance!
Beta Was this translation helpful? Give feedback.
All reactions