You are browsing documentation for an outdated plugin version.
Configuration
This plugin is compatible with DB-less mode.
Compatible protocols
The Canary Release plugin is compatible with the following protocols:
grpc
, grpcs
, http
, https
Parameters
Here's a list of all the parameters which can be used in this plugin's configuration:
-
name or plugin
string requiredThe name of the plugin, in this case
canary
.- If using the Kong Admin API, Konnect API, declarative configuration, or decK files, the field is
name
. - If using the KongPlugin object in Kubernetes, the field is
plugin
.
- If using the Kong Admin API, Konnect API, declarative configuration, or decK files, the field is
-
service.name or service.id
stringThe name or ID of the service the plugin targets. Set one of these parameters if adding the plugin to a service through the top-level
/plugins
endpoint. Not required if using/services/{serviceName|Id}/plugins
. -
route.name or route.id
stringThe name or ID of the route the plugin targets. Set one of these parameters if adding the plugin to a route through the top-level
/plugins
endpoint. Not required if using/routes/{routeName|Id}/plugins
. -
enabled
boolean default:true
Whether this plugin will be applied.
-
config
record required-
start
numberFuture time in seconds since epoch, when the canary release will start. Ignored when
percentage
is set, or when usingallow
ordeny
inhash
.
-
hash
string default:consumer
Must be one of:consumer
,ip
,none
,allow
,deny
,header
Entity to be used for hashing. Options:
consumer
,ip
,header
,allow
,deny
, ornone
. When usingconsumer
orip
, make sure to properly set the settings for trusted IPs (see thetrusted_ips
andreal_ip_header
settings in the Kong configuration file.)
-
hash_header
stringHeader name whose value will be used as hash input. Required if
config.hash
is set toheader
.
-
duration
number default:3600
The duration of the transition in seconds. Ignored when
percentage
is set, or when usingallow
ordeny
inhash
.
-
steps
number default:1000
Number of steps the release should be broken into.
-
percentage
number between:0
100
Fixed percentage of traffic to be routed to new target, if given overrides
start
andduration
. The value must be between 0 and 100.
-
upstream_host
stringThe target hostname where traffic will be routed. Required if
upstream_uri
andupstream_port
are not set.
-
upstream_port
integer between:0
65535
The target port where traffic will be routed. Required if
upstream_uri
andupstream_host
are not set. Must be a value between 0 and 65535.
-
upstream_uri
string len_min:1
The Upstream URI where traffic will be routed. Required if
upstream_port
andupstream_host
are not set.
-
upstream_fallback
boolean required default:false
-
groups
array of typestring
An array of strings with the group names that are allowed or denied. Set
hash
to eitherallow
(the listed groups go into the canary) ordeny
(the listed groups will NOT go into the canary.)
-
canary_by_header_name
stringHeader name that, when present on a request, overrides the configured canary functionality.
- If the configured header is present with the value
always
, the request will always go to the canary upstream. - If the header is present with the value
never
, the request will never go to the canary upstream.
For all other values, the configured canary rules will be applied.
- If the configured header is present with the value
-
-
hash
stringDeprecation notice: