The deck gateway sync
command configures the target Kong Gateway to match the values specified in your declarative configuration.
Any configuration in Kong Gateway that isn’t present in the provided declarative configuration file will be deleted using
deck gateway sync
. To apply a partial configuration use tags.
The deck gateway sync
command can accept one or more files as positional arguments:
# Sync a single file
deck gateway sync kong.yaml
In addition to positional arguments, deck gateway sync
can read input from stdin
for use in pipelines:
# Remove example-service from the file before syncing
cat kong.yaml | yq 'del(.services[] | select(.name == "example-service"))' | deck gateway sync