Repository navigation
|
In Kubernetes, a security practice is to make the image read only, and add writable temporary folders (emptyDir). Which temporary (empty) folders must be made writable for Keycloak to work, beyond its data directory? It fails on start because it tries to build, but the filesystem is read only. |
Replies: 2 comments
|
I would go with the following emptyDir s:
Instead of creating specific writable folders (which can be problematic in the future in case of file structure changes), I went on raising an init-container that copies the content from |
|
This has also been discussed on #11286 and several other issues. |
I would go with the following emptyDir s:
Instead of creating specific writable folders (which can be problematic in the future in case of file structure changes), I went on raising an init-container that copies the content from
/opt/keycloakto the new emptyDir I specified above/opt/writable-keycloak.And then you gonna need your entrypoint to be something like:
./opt/writable-keycloak/bin/kc.sh start