By default, decK assumes that it’s running on the same machine as Kong Gateway and that the Admin API requires no authentication.
This page explains the CLI flags required to customize this behavior. If you want to change the default behavior using environment variables or a configuration file, see the configuration options page.
The following examples use deck gateway ping
, but the flags also apply to all other deck gateway
commands.
The --kong-addr
flag configures the URL that decK calls to use the Admin API. The default value is http://localhost:8001
.
deck gateway ping --kong-addr https://my-kong-gateway.example.com:8001
If you run Kong Gateway using a self-signed TLS certificate, you should specify the --ca-cert
(raw contents) or --ca-cert-file
flag so that TLS verification can be performed:
deck gateway ping --kong-addr https://my-kong-gateway.example.com:8001 --ca-cert-file /path/to/ca.crt
If you don’t want to verify the TLS certificate (we do not recommend this), you can use the --tls-skip-verify
flag.