-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do we need a init system? #2
Comments
Maybe, probably. Otherwise we likely need some different way of starting apps. In this current baseimage draft and our current app we use According to this: https://pracucci.com/graceful-shutdown-of-kubernetes-pods.html the alpine linux shell, /bin/ash does not propagate signals to its children. So the java app does not see the SIGTERM and thus frameworks like spring boot and camel do not gracefully shut down. We need to verify this behaviour and find a solution, where dumb-init could be one. |
We use the exec form to start Java apps, which means they get pid 1. So there shouldn't be any issues regarding signals, but I'll test anyway. |
We are having problems taking heap dumps. Might be related to this: |
Verified that heap dump is possible when running the java process with PID > 1. However we still need to include jmap, jstack etc to this baseimage, I think. |
Yeah we need this then. Maybe we should set Regarding the jmap, jstack etc utils, they are part of the JDK and not the JRE. So we either need to base the baseimages of the JDK (increasing layer size) or include them through some other mechanism. |
@gtcno are you planning to add the Then we only need to add the |
I must admit, I have completely forgotten about this issue. If we're not using the Changing the base image to |
First cut adding the flag to the daemon failed. Daemonsets pods failed. I did not try out why. I'll look into it. However, can't see why we should not add it to the baseimage. It will work fine with the flag det globally as well |
It wasn't possible to add the |
dump utils. Added dumb-init as entrypoint for run-java.sh. Fixes #2 for java-9.
See https://github.com/Yelp/dumb-init
The text was updated successfully, but these errors were encountered: