Kong / deck

decK: Configuration management and drift detection for Kong

Home Page:https://docs.konghq.com/deck/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deck is deleting existing services after applying new changes.

abhipawar93 opened this issue · comments

After applying deck sync, why did the deck is deleting the existing service?
Is there a way to avoid this?

image

it seems you had one called "Test1_Deck" in your file, whilst there was another one called "Deck" in the system.

Keep the name the same, and change some property, then try again.

Hey Tieske,
It would work if I tried to edit the existing service configuration, but what I want is to create a new service without deleting existing ones.

it seems you had one called "Test1_Deck" in your file, whilst there was another one called "Deck" in the system.

Keep the name the same, and change some property, then try again.

Hi @abhipawar93 ,

Can you please share you configuration file(s)? decK applies configuration declaratively, so if something is not present in your configuration file, then decK removes it from the running configuration.

Hi Gabriele,

Please check below image where i have mentioned schema to create one service only without any route or plugin.

Please let me know whether the schema is correct or not.

IMG_20230621_144319409

Hi @abhipawar93 ,

as I mentioned before, decK applies configuration declaratively, so if something is not present in your configuration file, then decK removes it from the running configuration.

If you want to keep both services in the running configuration, you need to include both in the configuration file.