Skip to content
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

Support for external database? #755

Open
buaydin opened this issue Mar 27, 2024 · 3 comments
Open

Support for external database? #755

buaydin opened this issue Mar 27, 2024 · 3 comments

Comments

@buaydin
Copy link

buaydin commented Mar 27, 2024

From the values.yaml I couldn't find HowI can integrate Postgresql Server on the specific host. It's not supported or am I missing something? I don't want to create postgresql pod or use H2 database. I have my own postgresql server that I want to integrate.

@andrew-landsverk-win
Copy link

You can set this in valyes.yaml:

database: vendor: mariadb hostname: 192.168.X.X port: 3306 database: keycloak username: keycloak

There should be a way to pull the password for the DB from a secret/environment variable, I seem to have 2, probably from a previous version:

DB_PASSWORD
or
KC_DB_PASSWORD

@buaydin
Copy link
Author

buaydin commented Mar 28, 2024

hi @andrew-landsverk-win there is no database section in values.yaml. I'm confused.
In postgresql bitnami subchart it needs to be done like that I think;

postgresql:
enabled: false
host: Mypostgredbhost
postgresqlUsername: keycloak
postgresqlPassword: keycloak
postgresqlDatabase: keycloak

But it's not working for codecentric keycloak chart. It connects to h2 database.

@andrew-landsverk-win
Copy link

Ohh, I was referring to the keycloakx chart, are you using the keycloak (non-x) chart? For keycloakX, the relevant section is here: https://github.com/codecentric/helm-charts/blob/master/charts/keycloakx/values.yaml#L389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants