As of Kong 1.1 you can use db-less (declarative) configuration.
I can't find any information on how to start a Kong 1.1 based container in db-less/declarative mode without having to set up a db connection first. Does anyone know how to do this?
Checks documentation at https://hub.docker.com/_/kong
Kong Gateway can be run without a database using only in-memory storage for entities. We call this DB-less mode. When running Kong Gateway DB-less, the configuration of entities is done in a second configuration file, in YAML or JSON, using declarative configuration.
Kong datastoreKong uses an external datastore to store its configuration such as registered APIs, Consumers and Plugins. Plugins themselves can store every bit of information they need to be persisted, for example rate-limiting data or Consumer credentials.
Kong is a scalable, open source API Platform (also known as an API Gateway or API Middleware). Kong was originally built by Kong Inc. (formerly known as Mashape) to secure, manage, and extend over 15,000 Microservices for its API Marketplace, which generates billions of requests per month.
On the step 4 of kong official docker installation,
just change the config of docker run command FROM -e "KONG_DATABASE=postgres" TO -e "KONG_DATABASE=off" and you can go ahead!
remember that if you have a kong container run with postgres or cassandra before, firstly remove that configured kong container and image! Then run command like above
References:
kong database less configuration: this shows the way to config database less by "off"
kong docker compose file: this shows the config of kong database in docker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With