Closed bsakweson closed 4 years ago
Can you provide logs from the init-migrations pod?
Offhand, the Postgres chart sets up the user and database automatically; the migration job alone will not. Double-check that you've created your user, database, and granted your user permissions to it.
Closing in favor of the thread at https://discuss.konghq.com/t/kong-helm-chart-and-external-postgres-database/6063/2, as this should be a configuration issue (we know the chart can work with independent Postgres from other installations).
Honestly, there is not much of any logging and that has been the challenging. It is like shooting in the dark. This is all I see Error from server (BadRequest): container "kong-migrations" in pod "kong-kong-init-migrations-m5grv" is waiting to start: PodInitializing
yes, Kong with external Postgresql cannot be installed on Kubernetes Were you able to find a workaround?
Thanks
Gents,
I am experiencing an issue here and I am sure I am just missing something really small. I am in the process of test driving kong in my dev Kubernetes cluster. Kong configuration documentation actually explains that postgres and cassandra are the two databases supported. This chart actually has a postgres database as a dependency which can be used to run kong. The chart configuration runs kong in a databaseless mode using configmaps.
My use case is to run kong using an external already configured postgres database. The documentation states that one needs to add database configuration parameters in the
env
section of the values.yaml file to achieve that. I have done exactly that but unfortunately, I am not able to get my db initialized by kong. The job that is supposed to initialize my DB hangs on waiting for database. Everything works well when I enabled the database chart and run, and also when I run in databaseless mode. But just hangs when I run using my external database.Here is my values.yaml file: