USAKong
December 10, 2021, 4:20am
1
I have installed Latest 2.6.x Kong Gateway OSS and db-less mode instructions as per documentation
use the Using decK (YAML) instructions … all good so far but when I run :
deck sync … I am getting this :
deck sync
updating service example_service {
“connect_timeout”: 60000,
“host”: “mockbin.org ”,
“id”: “5f2be09e-de92-5059-859b-a01b35cf0d4a”,
“name”: “example_service”,
“port”: 80,
“protocol”: “http”,
“read_timeout”: 60000,
“retries”: 5,
“write_timeout”: 60000
}
Summary:
Created: 0
Updated: 0
Deleted: 0
Error: 1 errors occurred:
while processing event: {Update} service example_service failed: HTTP status 405 (message: “cannot create or update ‘services’ entities when not using a database”)
Any thoughts - what am I missing for db-less ? why we do even have deck sync if we cannot create or update ‘services’ entities when not using a database" ?
fomm
December 10, 2021, 4:37am
2
You can’t use deck with Kong deployed in dbless mode.
deck uses Admin API to create Kong entities. Admin API is read only in dbless mode.
USAKong
December 10, 2021, 4:40am
3
Thanks for the quick response. What other options we have for OSS with db-less mode ?
fomm
December 10, 2021, 10:09am
4
Not too sure if you are using docker or not. As you mentioned OS name, I assume you are installing the RPM package, is that right?
If that’s the case you can specify your declarative config file with this setting.
USAKong
December 10, 2021, 2:37pm
5
That’s correct.
So every time I update the kong.yml, Do I have to restart the kong ?
fomm
December 11, 2021, 10:17am
6
You have two methods of loading the file
Use KONG_DECLARATIVE_CONFIG. When you make a change on the config file, kong reload or restart is needed.
Use /config endpoint
Please check below doc for details