Comments (4)
Custom scripts can be any executable scripts, no just CLI scripts. However, they are run right before Keycloak is started.
See:
- https://github.com/jboss-dockerfiles/keycloak/tree/master/server#running-custom-scripts-on-startup
- https://github.com/jboss-dockerfiles/keycloak/blob/master/server/tools/autorun.sh
- https://github.com/jboss-dockerfiles/keycloak/blob/master/server/tools/docker-entrypoint.sh#L196
Another option could be to use a lifecycle hook. However, Kubernetes does not guarantee a pod ready before executing a hook, so you'll have to add some logic that waits for Keycloak to be up and running if you need that.
from helm-charts.
I tried those and had no success with such methods. I did find this link inside some old keycloak mailing list entry.
Ended up setting up keycloak how I wanted with the ldap, then exporting the config and including it as a config map that gets loaded with extraArgs
extraArgs: "-Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/jboss/import.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING"
from helm-charts.
That's pretty much what's suggested in the readme: https://github.com/codecentric/helm-charts/tree/master/charts/keycloak#setting-a-custom-realm
from helm-charts.
Closing this as solved.
from helm-charts.
Related Issues (20)
- Mixed content issue HOT 1
- Support for external database? HOT 4
- KeycloakX Update to 24.0.3 HOT 3
- [Keycloak] Network Policy enabling causes no connection between the pods or infini span instances HOT 1
- Is this repo still being maintained? HOT 2
- Support extraVolumeMounts and extraVolumes for deployment in templates HOT 2
- SHA1 support has been removed from JDK 9 onwards. Need to have option to support SHA1 algorithm. HOT 2
- Defaults for container memory limit HOT 1
- PVCs for postgres HOT 1
- Upgrading from 24.0.3 with the keycloakx helm chart to 25.0.0 fails HOT 15
- Running helm package fails HOT 1
- proxy definition is deprecated after updating image to 24.0.3. The proxy-headers should be used instead. HOT 1
- Release of keycloakx version 25 HOT 1
- Updating Image to 25.0.X results in CrashLoop using KeycloakX Chart HOT 7
- Keycloak.X version: 2.4.1 admin console somethingWentWrong HOT 4
- Keycloak 25.0.0 Helm Chart deployment -> CrashLoop HOT 7
- Regrouping issue about the last helm keycloakx chart release
- Metrics Endpoint appears to be broken in Keycloakx 2.4.2 Chart
- Keycloakx 25.0.1 crashloop without any message HOT 1
- KeycloakX 2.4.3 - ServiceMonitor template is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.