このページは、まだ日本語ではご利用いただけません。翻訳中です。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Canary Releaseプラグインは以下のプロトコルに対応しています:
grpc
, grpcs
, http
, https
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
string required
プラグイン名。この場合は
canary
。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
name
です。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
plugin
です。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
string
プラグインのインスタンスを識別するための任意のカスタム名 (例:
canary_my-service
。インスタンス名はKong ManagerとKonnectに表示されるので、 例えば複数のサービスで同じプラグインを複数のコンテキストで実行する場合に便利です。また、Kong Admin API経由で特定のプラグインインスタンスに アクセスするためにも使用できます。
インスタンス名は、次のコンテキスト内で一意である必要があります。
- Kong Gateway Enterpriseのワークスペース内
- Konnectのコントロールプレーン(CP)またはコントロールプレーン(CP)グループ内
- Kong Gateway (OSS)の全世界
-
string
プラグインが対象とするサービス名または ID。最上位の
/plugins
エンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/plugins
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするルート名または ID。最上位の
/plugins
エンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/plugins
を使用する場合は必要ありません。 -
boolean default:
true
このプラグインが適用されるかどうか。
-
record required
-
number
Future time in seconds since epoch, when the canary release will start. Ignored when
percentage
is set, or when usingallow
ordeny
inhash
.
-
string default:
consumer
Must be one of:consumer
,ip
,none
,allow
,deny
,header
Hash algorithm to be used for canary release.
-
consumer
: The hash will be based on the consumer. -
ip
: The hash will be based on the client IP address. -
none
: No hash will be applied. -
allow
: Allows the specified groups to access the canary release. -
deny
: Denies the specified groups from accessing the canary release. -
header
: The hash will be based on the specified header value.
-
-
string
A string representing an HTTP header name.
-
number default:
3600
The duration of the canary release in seconds.
-
number default:
1000
The number of steps for the canary release.
-
number between:
0
100
The percentage of traffic to be routed to the canary release.
-
string
A string representing a host name, such as example.com.
-
integer between:
0
65535
An integer representing a port number between 0 and 65535, inclusive.
-
string len_min:
1
The URI of the upstream server to be used for the canary release.
-
boolean required default:
false
Specifies whether to fallback to the upstream server if the canary release fails.
-
array of type
string
The groups allowed to access the canary release.
-
string
A string representing an HTTP header name.
-
-
string
Hash algorithm to be used for canary release.
whitelist
is deprecated. Useallow
insteadblacklist
is deprecated. Usedeny
instead.Deprecation notice: