Declarative config with a database

#1

Is it possible to use declarative config with a database?

The use case is to preserve the advantages of database mode but be able to use declarative config rather than scripting imperative calls to admin api.

If it is possible, how to generate the initial kong.yml? It’s possible to generate a template declarative configuration yml file with kong config init but if you already have your config in a database, is there a way to generate the yml file from your database?

Thanks

0 Likes

#2

Hi @benjaminmwilson,

Welcome to Kong Nation!

This is currently not supported natively in Kong but is something on our radar.

Meanwhile, you can use decK (disclaimer: I’m the author) to export, import and sync your Kong’s configuration using a YAML file.

1 Like