このページは、まだ日本語ではご利用いただけません。翻訳中です。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Kafka Consumeプラグインは以下のプロトコルに対応しています:
grpc
, grpcs
, http
, https
, ws
, wss
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
string required
プラグイン名。この場合は
kafka-consume
。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
name
です。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
plugin
です。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
string
プラグインのインスタンスを識別するための任意のカスタム名 (例:
kafka-consume_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
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするコンシューマーの名前または ID。 最上位の
/plugins
エンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/plugins
を使用する場合は必要ありません。 -
boolean default:
true
このプラグインが適用されるかどうか。
-
record required
-
set of type
record
required
-
array of type
record
required len_min:1
-
string required default:
http-get
Must be one of:server-sent-events
,http-get
The mode of operation for the plugin.
-
string required default:
noop
Must be one of:json
,noop
The deserializer to use for the consumed messages.
-
string required default:
latest
Must be one of:earliest
,latest
The offset to start from when there is no initial offset in the consumer group.
-
string required default:
auto
Must be one of:auto
,off
The strategy to use for committing offsets.
-
record required
-
string Must be one of:
sasl
The authentication strategy for the plugin, the only option for the value is
sasl
.
-
string Must be one of:
PLAIN
,SCRAM-SHA-256
,SCRAM-SHA-512
The SASL authentication mechanism. Supported options:
PLAIN
orSCRAM-SHA-256
.
-
boolean
Enable this to indicate
DelegationToken
authentication
-
string referenceable encrypted
Username for SASL authentication.
-
string referenceable encrypted
Password for SASL authentication.
-
-
record required
-
string
An identifier for the Kafka cluster.
-