Deck is a program that helps to upload and sync different kong configuration via command line

Install

Curl installation. Edit properly the version tag.

Make sure that the machine you install deck reaches correctly kong server

curl -sL https://github.com/kong/deck/releases/download/v1.27.1/deck_1.27.1_linux_amd64.tar.gz -o deck.tar.gz \
    && tar -xf deck.tar.gz -C /tmp \
    && cp /tmp/deck /usr/local/bin/

Usage

Installation check

deck --help

Dump kong configuration

In the same directory will be created a kong.yaml file representing the current kong configuration

deck dump

Find configuration differences

Make sure that in the same directory there is the kong.yaml file that you would like to check

deck diff

Sync configuration

sync the configuration file kong.yaml with the remote kong server. Key will be created/updated/delete with the same output of deck diff. Make sure to always run such command before.

deck sync

References

https://docs.konghq.com/deck/latest

Categories: BashServer

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.