このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
name or plugin
string requiredプラグイン名。この場合は
canary。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
service.name or service.id
stringプラグインが対象とするサービス名または ID。最上位の
/pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。 -
route.name or route.id
stringプラグインがターゲットとするルート名または ID。最上位の
/pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。 -
enabled
boolean default:trueこのプラグインが適用されるかどうか。
-
config
record required-
start
numberFuture time in seconds since epoch, when the canary release will start. Ignored when
percentageis set, or when usingallowordenyinhash.
-
hash
string default:consumerMust be one of:consumer,ip,none,allow,deny,headerEntity to be used for hashing. Options:
consumer,ip,header,allow,deny, ornone. When usingconsumerorip, make sure to properly set the settings for trusted IPs (see thetrusted_ipsandreal_ip_headersettings in the Kong configuration file.)
-
hash_header
stringHeader name whose value will be used as hash input. Required if
config.hashis set toheader.
-
duration
number default:3600The duration of the transition in seconds. Ignored when
percentageis set, or when usingallowordenyinhash.
-
steps
number default:1000Number of steps the release should be broken into.
-
percentage
number between:0100Fixed percentage of traffic to be routed to new target, if given overrides
startandduration. The value must be between 0 and 100.
-
upstream_host
stringThe target hostname where traffic will be routed. Required if
upstream_uriandupstream_portare not set.
-
upstream_port
integer between:065535The target port where traffic will be routed. Required if
upstream_uriandupstream_hostare not set. Must be a value between 0 and 65535.
-
upstream_uri
string len_min:1The Upstream URI where traffic will be routed. Required if
upstream_portandupstream_hostare not set.
-
upstream_fallback
boolean required default:false
-
groups
array of typestringAn array of strings with the group names that are allowed or denied. Set
hashto 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: