Cannot update service in DB-less mode #7995
-
I found the related issue #4373, that had no solution. I'm just getting started with kong and I opted for the DB-less mode since it's less hassle / less to set up. So I set up kong OSS 2.6 and decK 1.8.2 (becaue why wouldn't you wanna be declarative?), wrote an example
Why is that? I read that you started working on the delcarative stuff in '19 so I figure this ain't no bleeding edge feature ... or is it? I can just restart the container with the new YAML but I cannot update it via the API (read decK)? :| |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, you are partially correct. It's true that restarting the container with a new YAML file is certainly one option, but it's not what we would recommend, since that would mean interrupting the service. Most of the Admin API is read-only on DB-less mode, and will give you the 405 error that you just received if you attempt to modify individual entities. You might have missed that they are marked as However, the You may find more information about |
Beta Was this translation helpful? Give feedback.
Hi, you are partially correct. It's true that restarting the container with a new YAML file is certainly one option, but it's not what we would recommend, since that would mean interrupting the service.
Most of the Admin API is read-only on DB-less mode, and will give you the 405 error that you just received if you attempt to modify individual entities. You might have missed that they are marked as
Not available in DB-less mode
in our docs, for example here're the docs for Update ServiceHowever, the
/config
Admin API endpoint is available on DB-less. It will accept the YAML file and will replace all the entities in one go. It does not perform a server restart.You may find more informati…