lukaszbudnik / keycloak-kubernetes

Keycloak cluster deployed to Kubernetes
Apache License 2.0
163 stars 107 forks source link

connecting keycloak to a local DB #18

Closed mazbeh closed 1 year ago

mazbeh commented 1 year ago

Hi every body, i am new to kubenetes. I have recently tried to connect the keycloak containers ( pods ) to a local DB ( postgres ). But the connection will be refused. Do you know how can i connect the pod to a postgresql DB on the host ( on the host works every thing fine )?

Thanks alot !

lukaszbudnik commented 1 year ago

Hi @mazbeh, I'm closing this pull request because it's not related to the project. As you are new to Kubernetes you need to go through a few tutorial to better understand it. In short: it's tricky to connect to any services running on localhost from Kubernetes. In this situation I highly recommend that you follow the instructions in the README.md to install both Keycloak and PostgreSQL in Kubernetes.

mazbeh commented 1 year ago

ok, thanks for replying .