To use decK with Konnect, you must provide a Konnect authentication method and the name of a control plane to target.
If you are using personal access tokens or system access tokens, you can provide them using the --konnect-token flag:
deck gateway ping \
--konnect-token $KONNECT_TOKEN \
--konnect-control-plane-name default
You can provide the Konnect token in a file on disk rather than as an environment variable using the --konnect-token-file flag:
deck gateway ping \
--konnect-token-file /path/to/file \
--konnect-control-plane-name default
Use --konnect-addr to select the API to connect to.
deck gateway ping \
--konnect-token $KONNECT_TOKEN \
--konnect-addr https://us.api.konghq.com \
--konnect-control-plane-name default
The default API decK uses is https://us.api.konghq.com.
Kong Gateway supports AU, EU, IN, ME, and US geographic regions.
To target a specific geo, set konnect-addr to one of the following:
- AU geo:
"https://au.api.konghq.com"
- EU geo:
"https://eu.api.konghq.com"
- US geo:
"https://us.api.konghq.com"
- IN geo:
"https://in.api.konghq.com"
- ME geo:
"https://me.api.konghq.com"
Each state file targets one control plane.
If you don’t provide a control plane, decK targets the default control plane.
If you have a custom control plane, you can specify it in the state file,
or use a flag when running any decK command.
If you need to connect to one organization and control plane consistently, you can use environment variables prefixed with DECK_* instead of passing connection flags with every command. For example:
export DECK_KONNECT_TOKEN='YOUR-KONNECT-TOKEN'
export DECK_KONNECT_ADDR='https://eu.api.konghq.com'
export DECK_KONNECT_CONTROL_PLANE_NAME='YOUR-CONTROL-PLANE'
For more on how decK uses environment variables and configuration files, see decK configuration.