Kong Kubernetes yaml with RDS

Hello everyone!!!
I’m using Kong on K8s cluster and I need to configure it to use the RDS Postgres database.
I’m trying to change the parameters on kubefile (yaml), removing the entry of Postgres Service and StatefulSet, leaving just the kong-migrations and kong-ingress-kong with the Postgres parameters, setting the RDS informations (KONG_PG_HOST, KONG_PG_PASSWORD, POSTGRES_DB).
When I trying deploy the pod on K8s the kong-migrations didn’t find the postgres database (did not find the database name).
Has anyone tried to apply this setting?

Regards

Hello everyone!
I resolved my problem with AWS RDS.
The problem was the parameters on kubefile.
After I set this parameters the Kong worked correctly:

env:
- name: KONG_DATABASE
value: postgres
- name: KONG_PG_PASSWORD
value:
- name: KONG_PG_HOST
value: <RDS_ENDPOINT>
- name: KONG_PG_PORT
value: “5432”

A little tip, don’t forget to create the database on AWS RDS.

Tks!

1 Like