Kong / docs.konghq.com

🦍 Source code for docs.konghq.com website.
https://docs.konghq.com
MIT License
195 stars 593 forks source link

Implementation of Deploying Kong with Kubernetes,Backing Kong with a Database #3282

Open SivaramVeluri15 opened 3 years ago

SivaramVeluri15 commented 3 years ago

Where is the problem?

Hi, We are trying to deploy Kong in our Kubernetes cluster. The main CHallenges we are facing is that there is no proper sample documentation to implement Kong Ingress which is connected to external DB(preferably PostgresDB) and can save all the routes, services, plugins in those databases programmatically through Kong Admin Interface.

What is your suggestion?

Please add an example for deploying Kong with DB in Kubernetes.

Code of Conduct and Community Expectations

lena-larionova commented 2 years ago

@Kong/team-k8s can you take a look at this issue?

rainest commented 2 years ago

We wouldn't be able to add an actual working example since the database configuration is specific to your environment--we don't know your database hostname or credentials.

There isn't anything Kubernetes-specific about Postgres configuration, however: you use the same kong.conf settings you would in any installation, with the minor caveat that you'll almost certainly use environment variables (via the env section of your Deployment's container template) rather than a configuration file. The general-purpose configuration reference applies:

https://docs.konghq.com/gateway-oss/2.6.x/configuration/#environment-variables https://docs.konghq.com/gateway-oss/2.6.x/configuration/#postgres-settings

We do provide a somewhat more guided walkthrough that covers Postgres settings for Enterprise (to enable features that don't work in DB-less mode). The database settings there would be valid for non-Enterprise installs also, though some of the other settings (RBAC, for example), wouldn't be: https://docs.konghq.com/enterprise/2.5.x/deployment/installation/kong-on-kubernetes/#step-6-prepare-kongs-configuration-file

@SivaramVeluri15 does the configuration reference cover what you need to know? We don't necessarily provide guides for every possible configuration because there are many options you can mix and match, so you will need to cross-reference different sections of the docs if a guide doesn't cover your particular configuration.

Rajakavitha1 commented 11 months ago

HI @SivaramVeluri15 . You may want to check this guide: https://docs.konghq.com/kubernetes-ingress-controller/latest/deployment/kong-enterprise/.