Last update: Jun 6, 2021
From an operations point of view, KrakenD is very simple to use. It only requires you to pass the path to the configuration file(s) which define behaviors and endpoints.
Make sure KrakenD can find a krakend.json
and a LICENSE
file. You can create an initial krakend.json
with the following content:
$echo '{ "version": 2 }' > krakend.json
And then run the container (AWS example):
$docker run -p 8080:8080 -v "$PWD:/etc/krakend/" krakend/krakend-ee:2.3.0 run --config /etc/krakend/krakend.json --accept-eula
krakend.json
is good$krakend check -t --config krakend.json --debug
$krakend run -c krakend.json -d
The flag -c
is the short version of --config
and -d
the short version of --debug
which allows
you to find problems easily.
To start KrakenD make sure to provide the path to the binary or add it to the PATH
if using the non-Docker installation. KrakenD has the following options:
$krakend
╓▄█ ▄▄▌ ╓██████▄µ
▐███ ▄███╨▐███▄██H╗██████▄ ║██▌ ,▄███╨ ▄██████▄ ▓██▌█████▄ ███▀╙╙▀▀███╕
▐███▄███▀ ▐█████▀"╙▀▀"╙▀███ ║███▄███┘ ███▀""▀███ ████▀╙▀███H ███ ╙███
▐██████▌ ▐███⌐ ,▄████████M║██████▄ ║██████████M███▌ ███H ███ ,███
▐███╨▀███µ ▐███ ███▌ ,███M║███╙▀███ ███▄```▄▄` ███▌ ███H ███,,,╓▄███▀
▐███ ╙███▄▐███ ╙█████████M║██▌ ╙███▄`▀███████╨ ███▌ ███H █████████▀
`` `'`
Version: v1.3.0
The API Gateway builder
Usage:
krakend [command]
Available Commands:
check Validates that the configuration file is valid.
generate Generates static content for several functionalities. See subcommands.
help Help about any command
run Run the KrakenD server.
Flags:
-c, --config string Path to the configuration filename
-d, --debug Enable the debug
-h, --help help for krakend
Use "krakend [command] --help" for more information about a command.
As you can see there are 3 different supported commands:
krakend check
(syntax validation)krakend run
(run the server)krakend generate
(generates OpenAPI, Postman and other specs)krakend help
(show usage)The documentation is only a piece of the help you can get! Whether you are looking for Open Source or Enterprise support, see more support channels that can help you.
We use cookies to understand how you use our site and to improve your overall experience. By continuing to use our site, you accept our Privacy Policy. More information